Does anyone sees any fault?
<?php
$sql = 'SELECT * FROM messages';
$result = $database->sql_query($sql);
while ($row = $database->sql_fetchrow($result))
{
echo $row['message'];
}
?>
and my database connection
$database = mysql_select_db(DB_DATABASE) or die(mysql_error());