Forum Moderators: coopster
$query = "SELECT * FROM logpage WHERE user = '$user_name'";
$result = mysql_query($query);
echo "result is ", $result, "<br>";
I got "result is Resource id #3".
Anybody met such kind of situation before?
Any suggestion will be appreciated very much.
that is the correct value of $result, mysql_query [php.net] returns a resource [php.net].
You need to do something with it to get at the data
you could use
mysql_fetch_array [php.net] to loop through the results
mysql_num_rows [php.net] to get the number of rows returned