how to add last post in index.php.
Last Post
Started on the old forum in November 2007 · view the original in the archive · old links redirect here
I hav already send that codes to u bro.use them matarawap.com
External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone)
nope machan.its not there.give me only that code.
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)
thanks bro................
thanks bro it really works
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)