Don't speak in your natal language this it say'it alesh
Lavalair Script :(
Collapse
X
-
Guest
-
Guest
hey guys wats the code to fetch the last post on forum? how to fetch it on the main? man i tried all the quries but somethin isnt ok it just wont fetch can anyone of u gave me the code?
Comment
-
Guest
i can give that but i too need the code to fetch last posted topic
here the code but make sure to help me too
$memid = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_users ORDER BY regdate DESC LIMIT 0,1"));
echo "Newest Member:
sorry i gave the wrong code ill add the the registered member 2moro i have no time now
Comment
-
Guest
here is ur code now some one plz gimme the code to show last posted topic on main pleaseeeeeeeeeeeeeeeeeeeee
code echo "Registered Members: $norm[0] ";
Comment
-
<?
$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&t id=$lpt[0]&go=last\">$tlnm</a>";
$vulnk = "<a href=\"index.php?action=viewuser&sid=$sid& who=$tluid\">$tlnick</a>";
echo "
last post
topic: $tpclnk
by: $vulnk";
?>[/b]sigpiceeeeerrr....
Comment
-
Guest
-
Guest
brother do this open up ur index.php and look for registered members there is the code there just try them it will work bro its not hard to figure that code out
Comment
-
Guest
ok bro ill leave for home now 2moro when i come to work ill figure the exact code out and give u ok?
Comment
Comment