hello.
Help please!!!!
here is my code ( or the beginning of it )
$user_agency_id = mysql_query("SELECT agency_id FROM users WHERE username = 'usrname'");
Now, what it is suposed to do, is take the user agency id and input it into a table, like this:
$agency_id = "$user_agency_id";
Instead i get resource id # 4.
i know this has something to do with mysql_num_rows, but everything i try just returns the resource id number.
It is suposed to return the user that is logged on, return their agency id, please help, i've been working on this for days and days.