HTML beginner |
|
Warning: mysql_fetch_array(): 4 is not a valid MySQL result resource in /home/a2433met/public_html/MySpaze/moppen/weergevenmoppen.php on line 15
Waaraan kan dit liggen?
Edit: dit is de code
<!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>Untitled Document</title>
<link href="../ms.css" rel="stylesheet" type="text/css">
</head>
<body class="background">
<?
include("config.php");
$res = mysql_query("SELECT * FROM moppen ORDER BY id DESC");
while ($arr = mysql_fetch_assoc($res))
{
mysql_free_result($res);
?>
<table width="640" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td height="30" class="menubordertopbreed"><div class="titel" align="center"><? echo $arr["titel"].""; ?></div></td>
</tr>
<tr>
<td class="menuborderbottom">
<div class="text"><? echo $arr["mop"].""; ?></div></td>
</tr>
</table>
<br>
<?
}
?>
</body>
</html>
<!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>Untitled Document</title> <link href="../ms.css" rel="stylesheet" type="text/css"> </head> <body class="background"> <? include("config.php"); $res = mysql_query("SELECT * FROM moppen ORDER BY id DESC"); { ?> <table width="640" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td height="30" class="menubordertopbreed"><div class="titel" align="center"> <? echo $arr["titel"].""; ?></div></td> </tr> <tr> <td class="menuborderbottom"> <div class="text"> <? echo $arr["mop"].""; ?></div></td> </tr> </table> <br> <? } ?> </body> </html>
|