What the heck could possibly be wrong with this? It can't be any simpler, so i must be missing something simple.
All it's supposed to do is pull messages from a crashed forum so people can have them back. When i fire it up, it goes nuts and apparently keeps going back to thhe first table cell. Hard to tell, because the effect is a lot of scrolling and blinking.
<?php
$db = @mysql_connect("localhost", "*****", "*****");
if (!$db) {
echo( "<p>Unable to connect to the " .
"database server at this time.</p>" );
exit();
}
if (! @mysql_select_db("recover") ) {
echo( "<p>Unable to locate the " .
"database at this time.</p >" );
exit();
}
$result = @mysql_query(
"SELECT * FROM messages WHERE fid='17'");
if (!$result) {
echo("<p>Error performing query: " .
mysql_error() . "</p>");
exit();
}
echo("<table border=\"1\">");
while ( $row = mysql_fetch_array($result) ) {
$message = $row["message"];
$message = htmlspecialchars($message);
echo("<tr>");
echo("<td>$message</td>\n");
echo("</tr>");
}
?>
</table>
Thanks