| |
 |
 |
 |
 |
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, info, timestamp FROM inhalt ORDER BY timestamp DESC LIMIT 0, 4";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
if (mysql_num_rows($result) > 0)
{
while($row = mysql_fetch_object($result))
{
?>
echo formatDate($row->timestamp); ?>
|
echo $row->titel; ?>
|
echo $row->info; ?>
|
|
}
}
else
{
?>
NO NEWS
if you think there is a error occured...
Contact us
}
?>
|
|
 |
 |
 |
 |
|