|
|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
include("conf.php");
include("functions.php");
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
mysql_select_db($db) or die ("Unable to select database!");
$query = "SELECT id, titel, timestamp FROM oneinfo ORDER BY timestamp DESC LIMIT 21, 10";
$result = mysql_query($query) or die ("Error in: $query. " . mysql_error());
if (mysql_num_rows($result) > 0)
{
while($row = mysql_fetch_object($result))
{
?>
 |
echo $row->titel; ?>
echo formatDate($row->timestamp); ?> |
|
}
}
else
{
?>
No news
}
mysql_close($connection);
?>
|
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
|