Hey, Can anybody tell me what's wrong with the following? I'd be very grateful
Returns
PHP:
$query = mysql_query("SELECT * FROM FORUM_users WHERE username='$sessionusername'");
$sql = mysql_query($query) or die(mysql_error());
$obj = mysql_fetch_object($sql);
$postcount = $obj->user_posts;
echo "$postcount";
PHP:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #5' at line 1







