Ik ben bezig met een website en loop nu op een hele rare PHP/HTML Actie.
[img=http://img180.imageshack.us/img180/3978/nieuwsfucked7ka.png]
Hier staat de error, het is niet echt een error maar toch.
Er horen verschillende stukke coding bij maar ik post de belangrijkste.
<?php
$query = mysql_query("Select * From nieuws Order By datum Desc Limit 0,3");
$config['count']++;
if(mysql_num_rows($query) == 0){
head("Error");
echo("Er zijn nog geen nieuws berichten gevonden.");
foot();
} else {
while($nieuws = mysql_fetch_assoc($query)){
head($nieuws['titel']);
echo $nieuws['titel'].' Op '.datum($nieuws['datum']).' Door '.auteur($nieuws['auteur']).'<hr>'.opmaak($nieuws['bericht']).'';
foot();
}
}
?>Dit is de code waar hij zo vaag word.
function head($titel){
$return = '<table width="98%" border="0" align="right" cellPadding="4" cellSpacing="1" bgColor"#CCCCCC">
<tr>
<td width="100%" background="images/bgmenu1.gif" bgColor="#E1E1E1"><b>'.$titel.'</b></td>
</TR>
<TR>
<TD width="100%" bgColor=#EEEEEE class="tekst">';
echo $return;
}
function foot(){
$return = ' </TD>
</tr>
</table>';
echo $return;
}Head en Foot functies.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Frietzak[DOT]NL - Opensource Content Management System</title>
<style type="text/css">
body{
font-family: Verdana;
background-image: url(images/back.jpg);
}
.tekst,tr,table,td {
font-family: Verdana;
font-size: 8pt;
}
hr{
height: 1px;
color: black;
}
a:hover{
text-decoration: underlined;
}
a{
text-decoration: none;
}
</style></head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" style="border: 1px solid #CCCCCC;">
<tr>
<td bgcolor="#FFFFFF"><table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/loltets.gif" width="780" height="120"><br>
<hr></td>
</tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" valign="top"> <TABLE cellSpacing=1 cellPadding=4 width="100%" bgColor='#CCCCCC'
border=0>
<TR>
<TD width="100%" background='images/bgmenu1.gif' bgColor='#E1E1E1'><B>Site Navigation</B></TD>
</TR>
<TR>
<TD width="100%" bgColor=#EEEEEE class="tekst">»<A href=""> Link Link 1</A><BR>
»<A href=""> Link Link 2</A><BR>
»<A href=""> Link Link 3</A><BR>
»<A href=""> Link Link 4</A><BR>
»<A href=""> Link Link 5</A><BR>
»<A href=""> Link Link 6</A><BR>
»<A href=""> Link Link 7</A></TD>
</TR>
</TABLE><br> <TABLE cellSpacing=1 cellPadding=4 width="100%" bgColor='#CCCCCC'
border=0>
<TR>
<TD width="100%" background='images/bgmenu1.gif' bgColor='#E1E1E1'><B>Site Navigation</B></TD>
</TR>
<TR>
<TD width="100%" bgColor=#EEEEEE class="tekst">»<A href=""> Link Link 1</A><BR>
»<A href=""> Link Link 2</A><BR>
»<A href=""> Link Link 3</A><BR>
»<A href=""> Link Link 4</A><BR>
»<A href=""> Link Link 5</A><BR>
»<A href=""> Link Link 6</A><BR>
»<A href=""> Link Link 7</A></TD>
</TR>
</TABLE></td>
<td width="80%" bgcolor="#FFFFFF" valign="top">header.php
</td>
</tr>
</table>
<hr>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" style="border-top: 1px solid #CCCCCC;">
<tr>
<td background="images/bgmenu1.gif" bgcolor="#FFFFFF"><div align="center">©
Frietzak[DOT]NL Opensource Content Management System | <?php echo $config['count']; ?> MySql Query's</div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>footer.php
wie kan me helpen:(
