Problems with query and get

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
reddurango
Forum Newbie
Posts: 13
Joined: Sun Aug 16, 2009 9:17 am

Problems with query and get

Post 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.
reddurango
Forum Newbie
Posts: 13
Joined: Sun Aug 16, 2009 9:17 am

Re: Problems with query and get

Post by reddurango »

Ok i could solve it, i just use a new variable to get the value and use it on the query. Thanks
Post Reply