I have the script:

Code:
<h1>List Articles</h1>
<?php
// Conection to mysql
require_once ('../connection/class.mysql.php');
$data = new Mysql();
$data->connect();
// query SQL to read all the articles sorted according to its id
$query = "SELECT * FROM newsdb ORDER BY newsid";
$result = mysql_query($query);
while ($data = mysql_fetch_array($result))
...