Posted by - Dazed on 10/04/10 11:39
How do I combine the two following statements where I am selecting
everything from "category" where id=$id and sponsor='0' or $userid ?
Thanks for any help!
$result = mysql_db_query($database, "SELECT * FROM category WHERE
id=$id and sponsor='0'");
$result = mysql_db_query($database, "SELECT * FROM category WHERE
id=$id and sponsor=$userid");
[Back to original message]
|