A
Anonymous
Guest
Here is my code:
$conn holds the connection string.
This query returns the correct value when run natively from phpMyAdmin.
But keeps returning "Resource id #2" when running through php.
Can anyone point me in the right direction to solving this issue as I have spent quite a bit of time trying to sort it out and there is no particular information on the php.net site.
Cheers
Code:
include("database.php");
global $conn;
$q = "select access from users where username = '$username' and PASSWORD = '$password'";
$result = mysql_query($q,$conn);
echo $result
$conn holds the connection string.
This query returns the correct value when run natively from phpMyAdmin.
But keeps returning "Resource id #2" when running through php.
Can anyone point me in the right direction to solving this issue as I have spent quite a bit of time trying to sort it out and there is no particular information on the php.net site.
Cheers