RE: [PHP] mysql_query
| From: | Sævar Öfjörð | Date: | Sun, 06 Jul 2003 14:04:45 +0000 |
| Subject: | RE: [PHP] mysql_query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154122@lists.php.net to get a copy of this message | ||
Hmm. Should have been like this..
-----Original Message-----
From: Sævar Öfjörð [mailto:ofjord@simnet.is]
Sent: 6. júlí 2003 14:04
To: php-general@lists.php.net
Subject: Re: [PHP] mysql_query
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