Welcome to Geeklog, Anonymous Wednesday, November 06 2024 @ 10:07 pm EST
Geeklog Forums
Who's new
chong
Anonymous
So I put thiese lines on "lib-custom.php"
function phpblock_whos_new() { global $_CONF,$_TABLES; // Set the number of new members to show $numToShow = 5; $result = DB_query("SELECT uid,username,photo FROM ORDER BY regdate DESC limit $numToShow"); $nrows = DB_numRows($result); for ($i = 1; $i ' . $A['username'] . ''; if (!empty($A['photo']) AND $_CONF['allow_user_photo'] == 1) { $retval .= ' '; } $retval .= '
'; } return $retval; }
but it seems there's a trouble with "FROM ORDER BY"... I can't find how to fix it! need some help!!! thanx
function phpblock_whos_new() { global $_CONF,$_TABLES; // Set the number of new members to show $numToShow = 5; $result = DB_query("SELECT uid,username,photo FROM ORDER BY regdate DESC limit $numToShow"); $nrows = DB_numRows($result); for ($i = 1; $i ' . $A['username'] . ''; if (!empty($A['photo']) AND $_CONF['allow_user_photo'] == 1) { $retval .= ' '; } $retval .= '
'; } return $retval; }
but it seems there's a trouble with "FROM ORDER BY"... I can't find how to fix it! need some help!!! thanx
16
14
Quote
chOng
Anonymous
yeah!!!!
now it works well!
thank you very much
now it works well!
thank you very much
18
22
Quote
All times are EST. The time is now 10:07 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content