Re: SELECT query with multiple "WHERE" Clause
| From: | Chris | Date: | Thu, 28 Feb 2008 00:04:49 +0000 |
| Subject: | Re: SELECT query with multiple "WHERE" Clause | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44682@lists.php.net to get a copy of this message | ||
$query = mysql_query("SELECT * from gig WHERE gigName='$gig_name' OR WHERE gig_fdate='$sdate'");This one. I'd suggest you get a book to help you with the basics, something like this should do (first hit in amazon, haven't actually read this particular book): http://www.amazon.com/Learning-MySQL-Seyed-Saied-Tahaghoghi/dp/0596008643/ There's lots of stuff to learn in sql. -- Postgresql & php tutorials http://www.designmagick.com/