Last Post

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

7 replies · 742 views · started 19 years ago · 1 min read

4 participants
Guest #4

I give you my script last post...

$lpt = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_topics ORDER BY lastpost DESC LIMIT 0,1")); $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts")); if($nops[0]==0) { $pinfo = mysql_fetch_array(mysql_query("SELECT authorid FROM ibwf_topics")); $tluid = $pinfo[0]; }else{ $pinfo = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_posts ORDER BY dtpost DESC LIMIT 0, 1")); $tluid = $pinfo[0]; } $tlnm = htmlspecialchars($lpt[1]); $tlnick = getnick_uid($tluid); $tpclnk = "<a href="index.php?action=viewtpc&sid=$sid&tid=$lpt[0]&go=last">$tlnm</a>"; $vulnk = "<a href="index.php?action=viewuser&sid=$sid&who=$tluid">$tlnick</a>"; echo "Last Post: $tpclnk, BY: $vulnk ";

So Enjoy...External image (may be gone)

khan1 Developer · 101 posts #7

thanks it works

adeii Newbie · 8 posts #8

and how do to trick for 2-10 posts??

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