- Joined
- 2 Dec 2001
- Messages
- 18,694
Ok I need a quick hand as my crash course by myself of PHP and MySQL is letting me down!
Here is the current code
Now what I want to do is add this
except modified a little so on a mouseover the title will display the FULL topic name if it is over 25 characters long... Anyone got any ideas?
Here is the current code
Code:
<?
$content = "";
$result = mysql_query("SELECT threadid, title, lastpost FROM thread WHERE forumid<>'13' ORDER BY lastpost DESC limit 5");
while (list($threadid, $title, $lastpost) = mysql_fetch_row($result)) {
if (strlen($title)>'25') {
$title = substr($title, 0, 22);
$title .="...";
}
$content .= "<font class=tiny><a href=\"./forum/showthread.php?&threadid=".$threadid."&goto=newpost\" target=\"_blank\">".$title."</a><br>";
}
$content .= "";
?>
Now what I want to do is add this
Code:
title=\"$title\"
except modified a little so on a mouseover the title will display the FULL topic name if it is over 25 characters long... Anyone got any ideas?