The full HTML code for the whole page is here:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> Shanghai Trip 2010</title>
<link rel="stylesheet" type="text/css" href="style_V1.css" />
<meta http-equiv="content-type"
content="text/html; charset=utf-8"/>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1> SHANGHAI TRIP 2010 </h1>
</div>
<div id="navigation">
<ul>
<li><a href="default.php">Home</a></li>
<li><a href="shanghaizoo.php">Shangai Zoo</a></li>
<li><a href="chenghuangtmpl.php">Cheng Huang Temple</a></li>
</ul>
</div>
<div id="content">
<p>
Hi, welcome to my site, here you will be able to see a wide variety of holiday pictures taken while
I was in Shanghai 2010 during the Summer holidays. You will also be able to see what it was like in
The Shanghai World Expo to places such as Shanghai Financial center.
</p>
<div class="imageswrapper">
<?php
if( isset($images) )
{
$step = 2; // Columns
// Big for loop represents 1 whole image
for($i = 0; $i < count($images); $i+=$step)
{
// For loop for picture
for($j = 0; $j < $step; $j++)
{
if(isset($images[$i+$j]) )
{
echo '<div class="thumb">';
echo '<img src="./images/'.$images[$i+$j]['Filename'].'" width="150" height="100" >';
echo '</div>';
}
}
// For loop for description
for($j=0; $j < $step; $j++)
{
if(isset($images[$i+$j]) )
{
echo '<div class="thumbdesc">';
echo '<b>Description:</b>'.$images[$i+$j]['Description'] ."<br>";
echo '</div>';
}
}
}
}
?>
</div>
</div>
<div id="footer">
FOOTER
</div>
</div>
</body>
</html>
Should I have posted this issue on the php side?
Bookmarks