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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -