View Single Post
Old Mar 26th, 2008, 2:59 PM   #10
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,603
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
Re: Simple PHP Search Script

The problem is in your select statement. You don't have a column name after the WHERE in your select statement. Probably should look like this
sql Syntax (Toggle Plain Text)
  1. SELECT * FROM users WHERE info LIKE '%searchTerm%'

so in your php it should be:

php Syntax (Toggle Plain Text)
  1. $sql = "SELECT * FROM users WHERE info LIKE '%$find%'";
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote