View Single Post
  #2  
Old 12-18-2006, 04:19 AM
inder inder is offline
Senior Member
 
Join Date: Sep 2006
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 16
inder is on a distinguished road
Default

Try the following:
$query="SELECT * FROM book where " . $searchtype ." like '%" . $searchterm . "%'";

Hope it will help you! Good Luck! -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - Error in SQL syntax!
View Single Post
  #2  
Old 12-18-2006, 04:19 AM
inder inder is offline
Senior Member
 
Join Date: Sep 2006
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 16
inder is on a distinguished road
Default

Try the following:
$query="SELECT * FROM book where " . $searchtype ." like '%" . $searchterm . "%'";

Hope it will help you! Good Luck! -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote