LethalJ
06-22-2015, 01:22 PM
Hoping some of you great folk can assist me with this little problem I have.
We've added a profile popup to our forum for which we are calling the content from the mysql database which is working fine but it's causing a contradiction in the post count on postbit_legacy as it's including all the spam threads as well for which posts don't count. Is there anyway I can exclude these forum id's from the .php file so it only reads the correct postcount
The code to grab the postcount.php is as follows;
$grabposts = mysql_query("SELECT * FROM post WHERE userid = '" . $userid . "'");
$showposts = mysql_fetch_assoc($grabposts);
$numposts = mysql_num_rows($grabposts);
$postsamount = number_format($numposts);
Any help is appreciated
Thanks,
JB
We've added a profile popup to our forum for which we are calling the content from the mysql database which is working fine but it's causing a contradiction in the post count on postbit_legacy as it's including all the spam threads as well for which posts don't count. Is there anyway I can exclude these forum id's from the .php file so it only reads the correct postcount
The code to grab the postcount.php is as follows;
$grabposts = mysql_query("SELECT * FROM post WHERE userid = '" . $userid . "'");
$showposts = mysql_fetch_assoc($grabposts);
$numposts = mysql_num_rows($grabposts);
$postsamount = number_format($numposts);
Any help is appreciated
Thanks,
JB