no i do not recieve any errors
it doesnt limit the select to catid=1
to be more specific:
the compete query is:
$query=mysql_query("
SELECT question
FROM questions,sets
WHERE questions.setid=sets.id
AND sets.catid='1'
$str");
$str is a string that come from users input
if users input = bla1 bla2
$str="AND questions.question LIKE '%bla1%' OR questions.question LIKE '%bla2%' ";
if the variable $str contains 1 word everything is ok
else the query doesnt work
??
:rolleyes: