plz give me last post coding.
Funmobile Last Post
Collapse
X
-
you got your answer already here ==>>> FLOODERplz give me last post coding.[/b]
so why the f**k you started another topic with same query???
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
-
try this one man and save it as lastpost.php
and where ever u want it to show put
include 'lastpost.php'
Code:<?php $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&ses=$ses&tid=$lpt[0]&go=last\">$tlnm</a>"; $vulnk = "<a href=\"index.php?action=viewuser&ses=$ses&who=$tluid\">$tlnick</a>"; echo "Last Post: $tpclnk, BY: $vulnk "; ?>
correct me if i have done wrong somewhere but hey it had been posted somewhere earlier kindly use search before making a new topic...Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment



Comment