Is it possible to have an OR inside a WHERE statement in a mysql query as I have done below.
$query = mysql_query("SELECT * FROM fields WHERE post_id=$id OR post_id="" order by id desc") or die(mysql_error());
This produces a server error when run on my site. Any thoughts on how I could accomplish this?
Thanks in advance.
what are the errors.. as such ur query is fine but u string problems with all these double quotes.. try something like this..