【php开源代码栏目提醒】:网学会员为需要php开源代码的朋友们搜集整理了bobs_front_page.php相关资料,希望对各位网友有所帮助!
<?php
$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>
<?php
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>