Anyway, this frusterates me. Its not unusual for me to encounter resource id issues and hours of searching has yielded very little result. Maybe I have a wrong approach or something, I would like to learn.
So this query:
$query = "SELECT frc_id FROM frc_users WHERE frc_id = '$userid' "; $result = mysql_query ($query) or die(mysql_error()); echo $query; echo $result;
I get the right query:
SELECT frc_id FROM frc_users WHERE frc_id='2'
But the result is the resource id #18. What gives?