PDA

View Full Version : any help ??


Kaspa
Tue 6th Jan '04, 7:39am
well i was trying to add the latest topic to the main page of the fourm and i used this


<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"> ccccccc </a>


my question is how can i get the title of the last post instead of the ccc ???
i tried $forum[lastpost] and it gives me the session id of the post stored in the database ..


anyone can help in this ??

Kaspa
Thu 8th Jan '04, 11:02am
wats going on ??? no good php developers in here ?? no one is able to answer me or waT ????

Steve Machol
Thu 8th Jan '04, 11:12am
To get vB support on these forums you first need to be a licensed customer and register for Priority Forum Support. To do this, please click HERE (http://www.vbulletin.com/members/forums.php) and enter your email address in one of the boxes. You'll need to have your customer number and password to access the page.

If you still have problems after doing this, send an email to support@vbulletin.com. Please include your user name, then email address you registered with and your customer number so we can fix the problem.

equin0x
Sat 17th Jan '04, 11:29am
<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"> ccccccc </a>



<?php

echo "<a href=\"showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=".$forum['forumid']."\"> ".$forum['subject']."</a>";

?>



if you are connecting to your database and requesting information like this:


<?php

$sql = "SELECT * FROM yourtable ORDER BY time DESC"; // select newest post from table
$res = mysql_query($sql);

$forum = mysql_fetch_assoc($res); // or mysql_fetch_array or whatever you like to use

echo "<a href=\"showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=".$forum['forumid']."\"> ".$forum['subject']."</a>";

?>




it will work fine, if not contact me at AIM: dark 3xplosion
and i'll help you out some more