php - mysql_query select from multiple columns with OR -
i have:
$sql = mysql_query("select * articles articletitle or articledescription or articletags '%$term%'");
and returns no results.
am using or incorrectly here?
thanks
you need add 3 clauses:
select * articles (articletitle '%$term%') or (articledescription '%$term%') or (articletags '%$term%');
Comments
Post a Comment