Re: [PHP4BETA] Using two where stements with mysql
| From: | Khimenko Victor | Date: | Sun, 12 Dec 1999 20:04:51 +0000 |
| Subject: | Re: [PHP4BETA] Using two where stements with mysql | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7837@lists.php.net to get a copy of this message | ||
12-Dec-99 14:41 you wrote:
> Is it possble in any way to use two where statements when querying a mysql
> database?
Of course :-) It's not relate to PHP at all, though...
> Like the following which i know doesnt work;
> $query = "SELECT * FROM $sqlmaindb WHERE depth < 1 & name='bob'";
SQL does not use "&"... It uses "AND"... It's all explained in details
in
MySQL's manual.txt ...