I wanted to retrieve image from an array and display the first 3, after retrieving i want it to enlarge on
onmouseover and return to its original size on onmouseout. I get the following error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in c:\wamp\www\php website\photo upload project\suffleimage.php on line 103
The code is as follows:
<?
$pictures=array("X01.jpg","X01.jpg","X02.jpg","X03.jpg","X04.jpg","X05.jpg","X06.jpg","X07.jpg","X08.jpg","X09.jpg","X10.jpg","X11.jpg","X12.jpg");
shuffle($pictures);
?>
<table width=100%>
<tr>
<?
for ($i=0; $i<3; $i++)
{
LINE 103 --> echo "<td align=center><img onmouseover="resizeImg(this, 300)" onmouseout=resizeImg(this) src=\" ";
echo $pictures[$i];
echo "\" width=100 height=100></td>";
}
?>
</tr>
</table>