PDA

View Full Version : HELP ME on this code?



mngBJ
April 19th, 2003, 06:04 AM
what my code's problem? i cann't find my problem

$str= $HTTP_POST_VARS['SrchWord'];
$query= "select * from acect where LIKE '$str' ";


it represents following error

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE 'qqq'' at line 1

HELP ME?

eyezberg
April 19th, 2003, 09:00 AM
where WHAT? is LIKE '$str' ??!
same in english,
"give me that looks like $str' "
makes no sense..