Ok, what i've done...
Added this just under my logo on "main"
Added this in "viewuser"
And uploaded ricon.php file and insert the sqls but its not showing. why? did i perhaps miss something?
Added this just under my logo on "main"
Code:
///////////////////////////////////////////////////
$daytm = 7*60;
$reptime = time() - $daytm;
$rminfo = mysql_fetch_array (mysql_query("SELECT id, name, ficon, fmsg FROM ibwf_users WHERE reputation>='50' AND ficon!='' AND fmsg!='' AND lastact>'".$reptime."' ORDER BY RAND() LIMIT 1"));
//if(isbanned($rminfo[0]) $rminfo[0] = 0;
if($rminfo[0]>0)
{
mysql_query("UPDATE ibwf_users SET ruse=ruse+1 WHERE id='".$rminfo[0]."' LIMIT 1");
echo "<img src=\"$rminfo[2]\" alt=\"RI\"/><a href=\"index.php?action=viewuser&sid=$sid&who=$rminfo[0]\"> $rminfo[1]</a> (".htmlspecialchars($rminfo[3]).")
";
}
///////////////////////////////////////////////////
Code:
$nopl = mysql_fetch_array(mysql_query("SELECT reputation FROM ibwf_users WHERE id='".$who."'"));
echo "Rep. Power: [b]$nopl[0][/b]
";
$nopl = mysql_fetch_array(mysql_query("SELECT ruse FROM ibwf_users WHERE id='".$who."'"));
echo "Rep. Usefulness: [b]$nopl[0][/b]
";


Comment