<?php
$section = mobilarena;
ob_start();
include("../dbconfig.php");
$connect = mysql_connect($mysql_host, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db,$connect);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Mobilarena.dk</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#BDBDBD">
<table width="900" border="0" cellpadding="0" cellspacing="0" align="center">
<?php include("../top.php"); ?>
<tr>
<td width="150" class="tableleft">
<?php include("leftmenu.php"); ?>
</td>
<td width="600" class="tablecenter">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="400" class="normal">
<table width="395" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="boxtop"><font class="boxtopfont">Nyheder</font></td>
</tr>
<tr>
<td class="boxbottom">
<table width="385" border="0" cellpadding="0" cellspacing="0">
<?php
$news = mysql_query("select * from `news` order by id desc limit 0,6");
$nr = 0;
while($row_news = mysql_fetch_array($news)) {
$nr = $nr + 1;
?>
<tr>
<td class="underline" rowspan="2">
<img src="../img/news/small/google.jpg" width="70" height="50">
</td>
<td class="normal">
<div align="justify"><a href="readnews.php?id=<?php echo $row_news[id]; ?>" class="f12"><b><?php echo $row_news[headline]; ?></b></a><div>
</td>
</tr>
<tr>
<td class="underline">
<div align="justify"><font class="f12"><?php echo $row_news[headline2]; ?><br><?php echo $row_news[publicday]; ?>.<?php echo $row_news[publicmonth]; ?>.<?php echo $row_news[publicyear]; ?> kl. <?php echo $row_news[publictime]; ?></font></div>
</td>
</tr>
<?php
}
?>
<tr>
<td class="normal" colspan="2">
<div align="justify"><a href="news.php" class="f12">Flere nyheder</a><div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="200" class="normal">
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="boxtop"><font class="boxtopfont">Fokus</font></td>
</tr>
<tr>
<td class="boxmiddle"><a href="#" class="f12"><b>Mobilarena v2 er i luften!</b></a></td>
</tr>
<tr>
<td class="boxbottom"><img src="../img/news/focus/mobil.jpg" width="190" height="100"></td>
</tr>
<tr>
<td class="boxempty"><font class="f5"> </font></td>
</tr>
<tr>
<td class="boxtop"><font class="boxtopfont">Forum</font></td>
</tr>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="150" class="tableright">
<?php include("../rightmenu.php"); ?>
</td>
</tr>
<?php include("../bottom.php"); ?>
</table>
</body>
</html>
Jeg fik også afvide at der var fejl når den undskriver nyhederne fra databasen
.. Men der er ikke fejl her på min stationære, hvor jeg har installeret en apache server med php og mysql ..
Indlæg senest redigeret d. 30.08.2007 17:56 af Bruger #10622