Hey ... try this ... I haven't programmed in like 8 months so I am a bit rusty. See if this works. If NOT then take out the "$line["Message"]" ---> and replace with ",$line["Message"]);
<?php
$host = 'localhost';
$user = '';
$pass = '';
$db = '';
$link = mysql_connect($host, $user, $pass);
mysql_select_db($db);
$query = "SELECT * from shoutbox ORDER BY id DESC;";
$result = mysql_query($query) or die ("Query Failed");
while ($line = mysql_fetch_array($result, MYSQL_ASSOC))
// Takes out the < and replaces with nothing.
$message = str_replace("<","","$line["Message"]");
// Takes out the > and replaces with nothing.
$final_message = str_replace(">","","$message");
echo "<div align=\"left\"><font size=\"1\" face=\"Verdana\" color=\"#006699\"><strong>".$line["Nickname"]."</strong></font><br><font size=\"1\" face=\"Verdana\" color=\"#CC0000\">".$final_message."</font></div><br><br>";
mysql_free_result($result);
mysql_close($link);
?>
IF that doesn't work then try this one...
<?php
$host = 'localhost';
$user = '';
$pass = '';
$db = '';
$link = mysql_connect($host, $user, $pass);
mysql_select_db($db);
$query = "SELECT * from shoutbox ORDER BY id DESC;";
$result = mysql_query($query) or die ("Query Failed");
while ($line = mysql_fetch_array($result, MYSQL_ASSOC))
// Takes out the < and replaces with nothing.
$message = str_replace("<","",$line["Message"]);
// Takes out the > and replaces with nothing.
$final_message = str_replace(">","","$message");
echo "<div align=\"left\"><font size=\"1\" face=\"Verdana\" color=\"#006699\"><strong>".$line["Nickname"]."</strong></font><br><font size=\"1\" face=\"Verdana\" color=\"#CC0000\">".$final_message."</font></div><br><br>";
mysql_free_result($result);
mysql_close($link);
?>
Hope I can help... NOW if neither one works (which I would not be surprised!) then go here http://www.php.net/manual/en/function.str-replace.php
and all will be good. Take care!
Chad