SELECT * FROM my_table WHERE var1='$var1' AND var2='$var2'
------------------------------------------^
 
you use AND
 
-----Original Message-----
From: Kevin Fradkin [mailto:[EMAIL PROTECTED] 
Sent: 6. júlí 2003 13:43
To: [EMAIL PROTECTED]
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
 
 
 

Reply via email to