Last 10 Forum topics

Started on the old forum in June 2009 · view the original in the archive · old links redirect here

3 replies · 458 views · started 17 years ago · 1 min read

Guest #1

Some add please last 10 forum post code for lava wml.. Thanks

Guest #2
$sql = "SELECT id, name FROM ibwf_topics ORDER BY
lastpost DESC LIMIT 0,10";
$items = mysql_query($sql);
 echo mysql_error();
 if(mysql_num_rows($items)>0)
 {
while ($item = mysql_fetch_array($items))
{

$tlnm = htmlspecialchars($item[1]);
$tpclnk = "<a
href=\"index.php?action=viewtpc&sid=$sid&tid=$item[0]&go=last\">$tlnm</a>";

echo "$tpclnk<br/>";
Guest #3

This is last 10 ?

Vayne Developer · 106 posts #4

this is last 10 replied..

$sql = "SELECT id, name FROM ibwf_topics ORDER BY
lastpost DESC LIMIT 0,10";

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close