PHP Code:
<?php
include("header.php");
include("connect.php");
$query = mysql_query("select maxno from news limit 1");
$result = mysql_query('$query');
while($maxno = mysql_fetch_array($query));
$query = mysql_query("select * from news order by date desc limit $maxno");
$result = mysql_fetch_array($query));
extract($result) {
$date = $row['date'];
$title = htmlentities ($row['title']);
$news = nl2br (strip_tags ($row['news']));
echo("<b>$title on $date<BR><BR>$news</b>");
}
?>
This thing refuses to work, i know theres likely to be basic mistakes in here....but im new to php
Thanks, Philip