|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP Help
Well this seemed to work in years past so here I am again to ask the community for some php help.
I'm working on an image gallery called <a href="http://www.solitude.dk/gallerythingie/">"Gallery Thingie"</a> which is actually a very good php gallery that relies on flat-file databases for its information. The problem i'm having is that i need to limit the amount of thumbnails that appear on a single page. I asked the creator of the script have gotten no good advice accept to look for loop tutorials. Here's what i have have: PHP Code:
Any ideas anyone???? |
|
#2
|
||||
|
||||
|
Re: PHP Help
I downloaded the Gallery Thingie file and noticed that in the gt-pub.php there are several for loops.
Example: Code:
function displayList($phpfile, $linktitle = "number") {
global $name, $id, $category, $cat, $title, $path;
for ($i=0;$i<count($name);$i++) {
|
|
#3
|
|||
|
|||
|
Re: PHP Help
Quote:
|
|
#4
|
||||
|
||||
|
Re: PHP Help
Coming from a web-developer, I suggest that you start using mySQL or some kind of database structure. Databases ensure greater stability, speeds, and security than flat-file systems offer. I know this does not exactly help your situation, but just a word of advice.
![]() |
|
#5
|
||||
|
||||
|
Re: PHP Help
An indespensible tool for PHP development is http://www.php.net. You can look up any function in the search box for its syntax, or browse through functions by category.
|
|
#6
|
||||
|
||||
|
Re: PHP Help
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What does it mean when a php script is executed as a cgi?? | Adam Y. | Website Design/Showcase | 1 | 01-04-2005 21:57 |
| PHP and MySQL | MrToast | Website Design/Showcase | 4 | 18-03-2005 22:29 |
| White Paper Discuss: Basic PHP Tutorial | AIBob | Extra Discussion | 0 | 07-03-2005 15:11 |
| openFIRST PHP 5 Compatibility | Timothy D. Ginn | FIRST-related Organizations | 0 | 30-07-2004 13:45 |
| PHP and Wiki Error | Venkatesh | Website Design/Showcase | 2 | 24-07-2004 15:51 |