Page 1 of 1

Problems with query and get

Posted: Sun Aug 16, 2009 9:20 am
by reddurango
I have this problem i try to query some values selecting an specific value that is in the url i have this sintaxs but it doesn't work the code is:

$result = mysql_query("SELECT * FROM hoteles
WHERE hotel_destino=$_GET ["destino"]);

am i missing something? Please help.

Re: Problems with query and get

Posted: Sun Aug 16, 2009 9:40 am
by reddurango
Ok i could solve it, i just use a new variable to get the value and use it on the query. Thanks