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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -