Hallo,

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">&raquo;<A href=""> Link Link 1</A><BR>
&raquo;<A href=""> Link Link 2</A><BR>
&raquo;<A href=""> Link Link 3</A><BR>
&raquo;<A href=""> Link Link 4</A><BR>
&raquo;<A href=""> Link Link 5</A><BR>
&raquo;<A href=""> Link Link 6</A><BR>
&raquo;<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">&raquo;<A href=""> Link Link 1</A><BR>
&raquo;<A href=""> Link Link 2</A><BR>
&raquo;<A href=""> Link Link 3</A><BR>
&raquo;<A href=""> Link Link 4</A><BR>
&raquo;<A href=""> Link Link 5</A><BR>
&raquo;<A href=""> Link Link 6</A><BR>
&raquo;<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:(

Lijkt erop dat er iets mis gaat bij het afsluiten van de tabellen.
Kan je misschien de uitvoer (html broncode van de pagina
vanuit, zo te zien, explorer) eens posten? Daar hebben wel
heel wat meer aan.
<!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">&raquo;<A href=""> Link Link 1</A><BR>
&raquo;<A href=""> Link Link 2</A><BR>
&raquo;<A href=""> Link Link 3</A><BR>
&raquo;<A href=""> Link Link 4</A><BR>
&raquo;<A href=""> Link Link 5</A><BR>
&raquo;<A href=""> Link Link 6</A><BR>
&raquo;<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">&raquo;<A href=""> Link Link 1</A><BR>
&raquo;<A href=""> Link Link 2</A><BR>
&raquo;<A href=""> Link Link 3</A><BR>
&raquo;<A href=""> Link Link 4</A><BR>
&raquo;<A href=""> Link Link 5</A><BR>
&raquo;<A href=""> Link Link 6</A><BR>
&raquo;<A href=""> Link Link 7</A></TD>
        </TR>

    </TABLE></td><td width="80%" bgcolor="#FFFFFF" valign="top"><table width="100%"><tr><td><table width="100%" border="0" align="right" cellPadding="4" cellSpacing="1" bgColor"#CCCCCC">
                    <tr>
                        <td width="100%" background="images/bgmenu1.gif" bgColor="#E1E1E1"><b>test</b></td>
                    </TR>
                    <TR>
                        <TD width="100%" bgColor=#EEEEEE class="tekst">test Op 19-09-2005 17:04  Door Toppe<hr>test</td></tr></table><br><table width="100%" border="0" align="right" cellPadding="4" cellSpacing="1" bgColor"#CCCCCC">
                    <tr>
                        <td width="100%" background="images/bgmenu1.gif" bgColor="#E1E1E1"><b>Test #2</b></td>
                    </TR>
                    <TR>
                        <TD width="100%" bgColor=#EEEEEE class="tekst">Test #2 Op 19-09-2005 16:55  Door Toppe<hr>Heejz,
<br />

<br />
Je moet natuurlijk alles twee keer testen hé.
<br />

<br />
Met vriendelijke groet,
<br />
Evert-Job</td></tr></table><br><table width="100%" border="0" align="right" cellPadding="4" cellSpacing="1" bgColor"#CCCCCC">
                    <tr>
                        <td width="100%" background="images/bgmenu1.gif" bgColor="#E1E1E1"><b>Test</b></td>
                    </TR>
                    <TR>
                        <TD width="100%" bgColor=#EEEEEE class="tekst">Test Op 19-09-2005 16:42  Door Toppe<hr>Dit is een test,
<br />
om te kijken of alles wel netjes werkt:)</td></tr></table><br></td></tr></table>
</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 | 1 MySql Query's</div></td>
  </tr>
</table></td>
  </tr>
</table>
</body>
</html>


Of ik ben echt verschikkelijk krom of ik zie serieus geen fouten...:S

Reageren