[SOLVED] mysql query works but php code for query doesnt
Posted: Wed Feb 02, 2005 9:53 am
I have a Select\Where query I'm trying to run and display on a web page, pretty simple, exept the fact is I'm missing something and it's not working..
If I put the following into a sql query on phpmyadmin it works:
But when I try to add this to php it breaks.
I'm fairly new to all of this but I've been trying things and searching since yesterday afternoon trying to figure this one out..
Thanks
Scott
If I put the following into a sql query on phpmyadmin it works:
Code: Select all
SELECT * FROM `destinations` WHERE `Destination_ID` = 'Domestic'Code: Select all
$query = "SELECT * FROM destinations WHERE DestinationID='Domestic'";Thanks
Scott