Hi all, I've used php and mysql quite a bit now so i know how to retrieve data from a database, but for some reason this new site I'm working on is causing a bit of grief. I'm just trying to access the country table and retrieve the correct variable in the COUNTRY_DESC column which sounds straight forward but the code I'm using is bringing up errors. any ideas? heres the code as it is...
$get_query = mysql_query("SELECT * FROM country WHERE COUNTRY_CODE = 'A0';");
$get_result = mysql_fetch_array($get_query);
$country_name = $get_result['COUNTRY_DESC'];
...the databaseis being accessed fine, but i get the "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource" error
cheers all