Hello,
Below is the code i am talking about
:
PHP Code:
$response = mysql_query("SELECT * FROM `tData`
WHERE word1 LIKE '%".$q."%'
OR conj LIKE '%".$q."%'
OR word2 LIKE '%".$q."%'
OR username LIKE '%".$q."%'
OR lineID LIKE '%".$q."%'
ORDER BY `lineID` DESC LIMIT 0 , 10");
What i need is to make it so that the statement only selects the code with 'visible' (another field) set to 1... I have tried adding:
AND visible = 1
between
OR lineID LIKE '%".$q."%'
and
ORDER BY `lineID` DESC LIMIT 0 , 10");
however this has not worked.