View previous topic
::
View next topic
|
Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 412 Location: A'dam/Diemen, The Netherlands
|
Posted: Fri May 15, 2009 8:51 pm Post subject: [solution][snipplet] Phpbb3 code for latest users (userlist) |
|
|
Code: | function latest_signups($limit = 8)
{
global $db;
$sql = 'SELECT u.user_id AS id, u.username_clean AS username FROM '.USERS_TABLE.' u WHERE u.user_type IN (0, 3) ORDER BY u.user_regdate DESC LIMIT '.intval($limit);
$result = $db->sql_query($sql);
$data = array();
while ($row = $db->sql_fetchrow($result))
{
$data[] = $row;
}
$db->sql_freeresult($result);
return $data;
} |
|
|
Back to top |
|
 |
Google adsense Advertisement
|
Posted: Fri May 15, 2009 8:51 pm Post subject: [solution][snipplet] Phpbb3 code for latest users (userlist) |
|
|
Advertisement
|
|
Back to top |
|
 |
GravityForms Advertisement
|
Posted: Fri May 15, 2009 8:51 pm Post subject: [solution][snipplet] Phpbb3 code for latest users (userlist) |
|
|
Advertisement
 |
|
Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|