I tried using this code as a new file...
Code:
<?php
require("global.php");
$db_link = @mysql_pconnect("$dbservername", "$dbusername", "$dbpassword");
mysql_select_db ("$dbname", $db_link);
$query = mysql_query("SELECT threadid, dateline, title FROM thread WHERE visible=1 AND open=1 AND dateline!=4294967295 ORDER BY dateline DESC LIMIT 5");
while($row = mysql_fetch_array($query))
{
$username = $row["title"];
print("$title");
}
?>
But that gave me the error:
Warning: Supplied argument is not a valid MySQL-Link resource in /home/bombout/public_html/board/posts.php on line 5
.. when I ran posts.php (my new file name)
Anyone got any ideas?