PHP Code:
//selecting the 'news' database to use
mysql_select_db("news");
//Get todays date
$today = date("l F dS Y");
// create sql statement
$query = "SELECT * FROM news";
$result = mysql_query($query);
// total row number
$num = mysql_num_rows($result);
// news fieds
$title = mysql_result($result,$i,"title");
$news = mysql_result($result,$i,"news");
was the only thing i noticed.