kk i know this is basic heres my code , my output is this
Parse error: parse error, expecting T_VARIABLE' or'$'' in C:\wamp\www\bobscars\bobs_front_page.php on line 22
my code is
<?php
$pictures = array('Porsche.jpg','lambo.jpg', 'tire.jpg', 'sdoor.jpg', 'oil.jpg', 'sp.jpg');
shuffle($pictures);
?>
<html>
<head>
<title>Bob's auto parts </title>
</head>
<body>
<h1>Bob's auto parts </h1>
<div align ="center">
<table width =100%>
<tr>
<?php
for ($1 = 0; $i < 3; $i++) {
echo "<td align=\"center\"><img src=\"";
echo $pictures[$i];
echo "\"/></td>";
}
?>
</tr>
</table>
</div>
</body>
the pic files are kept in the same folder as the php script. this is exactly as i was asked to do it..lol any ideas 🙂