i have a problem with php. I write the following code and it returns blank
<?php
$query = mysql_query("SELECT * FROM users");
$result = $database->sql_query($query);
while ($dr = $database->sql_fetchrow($result))
{
echo $dr['uid'];
}
$database->sql_freeresult($result)
?>
i call this
include_once 'includes/db.php';
and on db.php.
$database = mysql_select_db(DB_DATABASE) or die(mysql_error());