Sorry this will probably seem a ridiculously simple thing to ask but putting "where" in the search returns nothing..too common a word.
Anyway, here's the question: Can you have two arguments in a mySQL WHERE statement?
Need to query a list of hotels by both Country and City and having trouble getting it to work.
mysql_query("SELECT * FROM hoteldetails WHERE country='$country' "); //works ok
mysql_query("SELECT * FROM hoteldetails WHERE city='$whatCity' "); //works ok
mysql_query("SELECT * FROM hoteldetails WHERE country='$country' AND city='$whatCity' "); //does'nt work
mysql_query("SELECT * FROM hoteldetails WHERE country='$country' && city='$whatCity' "); //also doesn't work 🙁
So I dont know whether its a syntax issue, using the wrong thing for "and" or I'm asking something that can't be done.
Simon