Re: mysql_query
| From: | Sævar Öfjörð | Date: | Sun, 06 Jul 2003 14:03:31 +0000 |
| Subject: | Re: mysql_query | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154121@lists.php.net to get a copy of this message | ||
SELECT * FROM my_table WHERE var1='$var1' AND var2='$var2'
------------------------------------------^
you use AND
-----Original Message-----
From: Kevin Fradkin [mailto:kevin@fradkin.com.ar]
Sent: 6. júlí 2003 13:43
To: php-general@lists.php.net
Subject: [PHP] mysql_query
hi... 1 question...
how can i show in a table the query i'm trying to make
this is what i want :
select * from my_table where var1='$val1' /* here comes the trouble
cause i want to use 2 instead of only one... */ var2='$val2'
how you have to use it for more than one? where var1='$val1' ???
var2='$val2' ?
thanks in advance..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php