Jump to content

[SOLVED] a surprising problem.plz help me out


ashu.khetan

Recommended Posts

i am using a link http://10.111.11.28/project/practice/test.php?v[0]=table%2B-1&v[1]=1&v[2]=12%0A%0A%0A%0A123456&v[3]=1&v[4]=0

 

my code is

$b=$_GET['v'][0];

$c=$_GET['v'][2];

$d=$_GET['v'][3];

//$string=$_GET[a];

$a="delete from `$b` where `field1\"'''`='".$c."' and `qw`='".$d."'";

$link=@mysql_connect($_SESSION[host],$_SESSION[user],$_SESSION[pass]) or die("");

@mysql_select_db($_SESSION[db],$link);

$string1="delete from `table+-1` where `field1\"'''`='12

 

 

 

123456' and `qw`='1'";

 

surprisingly when comparing the value of $string1 and $a,i found that both values are not equal.plz help me out.i am really confused. how can we make $a same as $string1.any help will be very much appreciated

 

the solution has been found.i found out the solution by printing the hex code of both the strings.it was found that when we press enter in case of $string1, the newline character is \r\n whereas in case case of $a we are only inputting \n,thanks everyone 4ur help:)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.