hey guys ive being strugling with this small damn code i have added code to report users porfile but now i want it to display in the main page in mlog like if there are new reports
(1|0|0)
the 1 will be users profiles reported
(1|0|0)
the 1 will be users profiles reported
Code:
if(ismod($uid)) { echo "<hr />"; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE reported='1'")); $tot = $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE reported='1'")); $tot = $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE reported='1'")); $tot += $tnor[0]; $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE reported='1'")); $tot += $tnor[0]; $tnol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog")); $tol = $tnol[0]; if($tol+$tot>0) { echo "<a href=\"mcppl.php?action=main&sid=$sid\">»$lang36</a>($tot|$tol)"; echo "<hr />"; }
Comment