| | |
php photo gallery extra code needed
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2005
Posts: 1
Reputation:
Solved Threads: 0
Hi i have this code to create a photo gallery on my website.
i was wondernig what code would be needed to limit the gallery to only show 10 images per page and to add links at the bottom to allow progression through the gallery.
many thanks
chris
PHP Syntax (Toggle Plain Text)
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Microsoft FrontPage Express 2.0"> </head> <body bgcolor="#FFFFFF"> <div align="center"><center> <?php $a = '0'; $filepath = "thumb"; $url_path = "main"; $dir = dir($filepath); echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"5\" width=\"75%\">"; while($entry=$dir->read()) { if($entry == "." || $entry == "..") { continue; } $fp = @fopen("$filepath/$entry","r"); if ($a == '0') {echo "<tr>";} if ($a == '5') {echo "<tr>";} if ($a == '10') {echo "<tr>";} if ($a == '15') {echo "<tr>";} ?><td> <a href="<? echo "$url_path/$entry" ?>"> <img src="<? echo "$filepath/$entry" ?>" alt="<? echo $entry ?>"></a> </td> <? $a = $a + 1; } ?> </tr> </table> </center></div> </body> </html>
i was wondernig what code would be needed to limit the gallery to only show 10 images per page and to add links at the bottom to allow progression through the gallery.
many thanks
chris
![]() |
Similar Threads
- embedding php photo gallery in html (Graphics and Multimedia)
- Photo Gallery (PHP)
- Photoshop, Javascript Photo Gallery Help (JavaScript / DHTML / AJAX)
- Photo Gallery (PHP)
- Photoshop web photo gallery to dreamweaver (Site Layout and Usability)
Other Threads in the PHP Forum
- Previous Thread: Turck mmCache no more?
- Next Thread: Domain Manager Problem
| Thread Tools | Search this Thread |
apache api array basic beginner binary body broken cakephp class cms code computing confirm cron curl customizableitems database date date/time delete display dynamic echo email error file files filter folder form forms forum function functions gc_maxlifetime global google headmethod href htaccess html iframe image include ip javascript joomla limit link list login malfunction memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php play query question random recourse recursion regex root script search seo server sessions snippet source space sql static system table thesishelp trouble tutorial update upload url variable video web webdesign xml youtube





