Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Topo sudarymas

Parašė marqs· 2011 Vas. 3 02:02:32
#6

Bandyk:


openside(TOP);
 
$result = dbquery("SELECT user_name, user_id, user_srank FROM ".$db_prefix."users ORDER BY user_srank DESC LIMIT 0,5");
 
 echo "<table width='100%' cellpadding='0' cellspacing='0' style='border: 1px solid #000'>";
 echo "<tr><td align='center' style='background-color:#d2af5c;'>Narys</td><td align='center' style='background-color:#d2af5c;'>Taškai</td></tr>";
 
while ($data = dbarray($result)) {
 
	echo "<tr><td style='background-color:#e1c175;' align='center'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>
		<td style='background-color:#e1c175;' align='center'>".$data['user_srank']."</td></tr>";
 
}
 
 
 
echo "</table>";
 
closeside();