# HELP ME on this code?

**URL:** <https://forum.kirupa.com/t/help-me-on-this-code/18671>\
**Category:** programming\
**Created:** [April 19, 2003, 10:04am UTC](https://forum.kirupa.com/t/help-me-on-this-code/18671 "2003-04-19T10:04:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mngBJ](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mngBJ](https://forum.kirupa.com/u/mngBJ)\
**Post date:** [April 19, 2003, 10:04am UTC](https://forum.kirupa.com/t/help-me-on-this-code/18671/1 "2003-04-19T10:04:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 19, 2003, 1:00pm UTC](https://forum.kirupa.com/t/help-me-on-this-code/18671/2 "2003-04-19T13:00:33Z")

</div>

where WHAT? is LIKE ‘$str’ ??!  
same in english,  
"give me that looks like $str’ "  
makes no sense…
