code below :
Code: Select all
<?
$pictures = array("tire.jpg", "oil.jpg", "spark_plug.jpg", "door.jpg",
"steering_wheel.jpg", "thermostat.jpg", "wiper_blade.jpg",
"gasket.jpg", "brake_pad.jpg");
shuffle($pictures);
?>
<html>
<head>
<title>Bob's Auto Parts</title>
</head>
<body>
<center>
<h1>Bob's Auto Parts</h1>
<table width = 100%>
<tr>
<?
for ($i = 0; $i < 3; $i++)
{
echo "<td align = center><img src="";
echo $pictures[$i];
echo "" width = 100 height = 100></td>;
}
?>
</tr>
</table>
</center>
</body>
</html>Parse error: parse error in /var/www/localhost/htdocs/frontpage.php on line 28
[Edit: Added PHP tags, and voila... --JAM]