Hi, I'm trying to make my gallery so that it shows a certain number of images then creates more pages.
Can anyone help me out on this?
This is my gallery file at the minute.
gallery.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../css/thumbnailviewer.css" rel="stylesheet" type="text/css" />
<link href="../css/template.css" rel="stylesheet" type="text/css" />
<link href="../css/gallery.css" rel="stylesheet" type="text/css" />
<script src="../javascript/thumbnailviewer.js" type="text/javascript">
/***********************************************
* Image Thumbnail Viewer Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<meta name="google-site-verification" content="bnaI_LwZ6UHyodzqR5wpWkFUDJRGR-uvKhhImxgR6ac" />
<meta name="description" content="The leading reptile shop in Ireland. Based in Belfast">
<meta name="keywords" content="Snake, Lizard, Tortoise, Turtle, Spider, Tarantula, Live, Food, Reptile, Belfast, Shop>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Reptiles Inverts Amphibians Belfast </title>
</head>
<body>
<div class="wrap">
<div id="header">
<div id="logo">
<img src="../images/images/reptilelogo.jpg" alt="logo" />
</div>
<div id="sqiggle">
</div>
</div>
<div id="container">
<div id="menu">
<div id='cssmenu'>
<ul>
<li><a href='home.php'><span>Home</span></a></li>
<li><a href='gallery.php'><span>Gallery</span></a> </li>
<li><a href='contact.php'><span>Contact</span></a></li>
<li><a href='available.php'><span>Livestock</span></a></li>
<li><a href='#'><span>Shop</span></a></li>
</ul>
</div>
</div>
<?php
include 'connect.php';
$q = "SELECT a.imagepath AS thumbpath, b.imagepath AS imagepath, name
FROM reptile_thumbs AS a
JOIN reptile_gallery AS b
USING(id) ORDER BY id DESC";
if($r = mysql_query($q))
{
echo '<div id="thumbs">';
while($row=mysql_fetch_array($r))
{
echo "<div class='thumb'>
<a href='{$row['imagepath']}' rel='thumbnail'>
<img class='thumbnail' src='{$row['thumbpath']}' alt='{$row['name']}' title='{$row['name']}' />
<div class='imgLabel'>{$row['name']}
</div></a></div>";;
}
echo '</div>';
}
else
{
echo mysql_error();
}
?>
<div id="footer">
<p><center><span class="span2">Reptile, 48 York Street, Belfast, BT15 1AS</span></center></p>
</div>
</div>
</div>
Thanks for looking....