Jump to content

MySQL Syntax


puritystandsout

Recommended Posts

Dear anyone who can help.

I am trying to execute a complex query:

[code]
$query1 = mysql_query("SELECT * FROM members WHERE (skill1 LIKE '%$select_search%' OR skill2 LIKE '%$select_search%' OR skill3 LIKE '%$select_search%) AND skill_sought1 LIKE '%web developer%'  ") or die (mysql_error());
[/code]

I get this error:

[quote]
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 '%web developer%'' at line 1
[/quote]

Any ideas?  I need to use multiple OR and one AND boolean(s)...

Many Thanks.

Regards and Jesus Christ's blessings,

Chris Cundill
Link to comment
https://forums.phpfreaks.com/topic/14455-mysql-syntax/
Share on other sites

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.