Re: SELECT query with multiple "WHERE" Clause

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




$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/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux