simple mysql "or" question
Posted: Thu Jul 10, 2003 10:46 am
what would be the mysql query syntax that I would use if I wanted to grab a row of informationi from a table based on whether a value is equal to 7 or 8?
would it be
$sql = "SELECT * FROM customers WHERE id = '7' OR '8'";
I don't think that is right at all but I really don't know if this is possible or not.
Thanks!
would it be
$sql = "SELECT * FROM customers WHERE id = '7' OR '8'";
I don't think that is right at all but I really don't know if this is possible or not.
Thanks!