<?php
//This is just a sample
include("mysql.php");
$query = mysql_query("SELECT * FROM online order by `number`") or die(mysql_error());
$row = mysql_fetch_array($query) or die(mysql_error());
echo '
First, you are using a deprecated extension: http://us1.php.net/manual/en/function.mysql-query.php, second of all you $query isn’t setup right: http://us1.php.net/manual/en/intro.mysqli.php -> Use for help on mysqli.