if($_SERVER['QUERY_STRING'] == ""): { $sql = "SELECT * FROM news_90 ORDER BY date DESC LIMIT 1"; } else: { $sql = "SELECT * FROM news_90 WHERE id = '$_REQUEST[id]' "; } endif; $sql_result = mysql_query($sql); if (mysql_num_rows($sql_result) ==0) { echo ("
An Error Occured
\n"); } else { while ($row = mysql_fetch_array($sql_result)){ $title = $row["title"]; $date = $row["date"]; $description = $row["description"]; echo ''.$title.'
' .date('F jS Y',strtotime($date)) .'
'. nl2br("$description").'
'; } } ?>