hallo,
<code>
<?php
include ("db_connect.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$sql = "SELECT id, productnaam, productbeschrijving, prijs FROM producten ORDER BY id";
$result = mysql_query($sql);
if (empty($result)){
echo ("Er zijn momenteel geen producten in de database");
}
else {
while (list($id, $productnaam, $productomschrijving, $prijs) =
mysql_fetch_row($result)){
echo ("$id | $productnaam | $productomschrijving | $prijs");
}
?>
</body>
</html>
</code>
Ik krijg steeds de melding Parse error: parse error in /home/huntjens/public_html/test/shop.php on line 26
Maar ik zie geen fout in het script. Kan iemand me helpen?
<code>
<?php
include ("db_connect.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$sql = "SELECT id, productnaam, productbeschrijving, prijs FROM producten ORDER BY id";
$result = mysql_query($sql);
if (empty($result)){
echo ("Er zijn momenteel geen producten in de database");
}
else {
while (list($id, $productnaam, $productomschrijving, $prijs) =
mysql_fetch_row($result)){
echo ("$id | $productnaam | $productomschrijving | $prijs");
}
?>
</body>
</html>
</code>
Ik krijg steeds de melding Parse error: parse error in /home/huntjens/public_html/test/shop.php on line 26
Maar ik zie geen fout in het script. Kan iemand me helpen?
[ Voor 14% gewijzigd door Verwijderd op 29-04-2004 14:42 ]