i'm gettin a parse error (specifically at line 45) and i haven't been able to figure out what that means. so any help would be greatly appreciated.
here's the code
Code: Select all
<html>
<head>
<title>
PHP-Database Photo Album
</title>
<script language="javascript" src="photo_popup.js">
</script>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#0000ff" alink="#0000ff">
<!--Begin Image Display Table-->
<table width="75%" cellpadding="2" cellspacing="0" align="center" border="0">
<!--Begin PHP Coding for Image Gallery-->
<?PHP
//set variables
$data_file = "/full_size/list.php";
$thumbs_dir = "thumbs/";
$num_rows = "2";
$pic_per_row = "3";
$photos = file($data_file);
$total_photos = sizeof($photos);
$photos_per_page = $rows * $pic_per_row;
//if not set, set to 0 and start at beginning of gallery
if(!isSet($start)){
$start = 0;
}
//set i equal to where to start in photo array
$i = $start;
$next_start = $start - $photos_per_page;
$prev_start = $start + $photos_per_page;
//begin printing of table to hold image thumbnails
for ($row=0; $row < $num_rows; $row++){
echo ("<tr>\n");
for ($col=0; $col < $pic_per_row; $col++){
if ($i < $total_photos){
$thumbnail = $thumbs_dir.trim($photosї$i]);
$thumb_image_size = getimagesize(thumbnail);
$image_size = getimagesize(trim($photosї$i]));
echo ("<td align="center">
<a href="javascript:photo_open('photo_display.php?photo=".trim($photosї$i]."','"$image_sizeї0]."','"$image_sizeї1]."');">
<img src="".$thumbnail."" ".thumb_image_sizeї3].">
</a>
</td>\n");
} else {
echo ("<td></td>\n");
}
$i++;
}
echo ("</tr>\n");
}
//end table insert
?>
<!--End PHP Coding for Image Gallery-->
</table>
<!--Begin PHP Coding for Image Gallery Navigation-->
<div align="center">
<?PHP
//Print out Navigation Links
if(($start == 0) && ($next_start < $total_photos)){
//At beginning of Gallery
?>
<span style="font-family:arial; font-size: 12px; font-weight: bold;>
<a href="photo_index.php?start=<?PHP echo($next_start);?>">Next Page</a>
</span>
<?PHP
}
elseif (($start > 0) && ($next_start < $total_photos)){
//In Middle of Gallery
?>
<span style="font-family:arial; font-size: 12px; font-weight: bold;>
<a href="photo_index.php?start=<?PHP echo($prev_start);?>">Previous Page</a>
|
<a href="photo_index.php?start=<?PHP echo($next_start);?>">Next Page</a>
</span>
<?PHP
}
elseif (($start == 0) && ($next_start > $total_photos)){
//In a One-Page Gallery
?>
<?PHP
}
else {
//At the end of the Gallery
?>
<span style="font-family:arial; font-size: 12px; font-weight: bold;>
<a href="photo_index.php?start=<?PHP echo($prev_start);?>">Previous Page</a>
</span>
<?PHP
}
?>
</div>
<!--End PHP Coding for Image Gallery Navigation-->
</body>
</html>lata on,
Money