Possible Duplicate:
How do i “echo” a “Resource id #6” from a MySql response in PHP?
Hey guys, I got an error when I try to run my code in PHP. It displays resource id #53 in my screen. All I want is to count only the total of one of my field but I'm stuck with this error. Here's my code below:
$last_points = mysql_insert_id();
//echo $last_points , display like 12... no error
$fkid = $last_points; // no error....
$sql = "SELECT COUNT(*) FROM downline WHERE fkmember = {$fkid}";
$execute = mysql_query($sql) or die (mysql_error());
echo $execute; //display error why?
Help me guys please. I think it's my query.