Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: pagalbos: Daugiausiai pakvietė

Parašė iSin· 2010 Bal. 20 19:04:19
#4

va;
openside("Daugiausiai pakvietë");
   $result = dbquery("SELECT * FROM `".DB_PREFIX."invites` GROUP by `invite_user_id` ORDER by COUNT(*) DESC LIMIT 5");
   echo "<table class='tbl-border' width='100%'>";
   while ($data = dbarray($result)) {
   $time = dbrows(dbquery("SELECT * FROM `".DB_PREFIX."invites` WHERE `invite_user_id`='".$data['invite_user_id']."'"));
   $data2 = dbarray(dbquery("SELECT * FROM `".DB_PREFIX."users` WHERE `user_id`='".$data['invite_user_id']."'"));
   echo "<tr><td class='tbl2' align='left'>
   <a href='".BASEDIR."profile.php?lookup=".$data2['user_id']."'
   title='Perziur&#235;ti ".$data2['user_name']." profila'>".$data2['user_name']."</a></td><td align='right' class='tbl1'>
   $time</td></tr>";
   }
   echo "</table>";
   closeside();