Thread: PHP help needed
View Single Post
Old 2006-06-06, 07:56 AM   #8
WarBot
If something goes wrong at the plant, blame the guy who can't speak English
 
WarBot's Avatar
 
Join Date: May 2006
Posts: 306
Quote:
Originally Posted by tickler
if($i < $numtgp) {
if($i < $numfs) {
Still a small problem with these, they should be using <=

Personally I don't like nested elseif groups. They tend to get confusing when you get into multiple levels.

Also I prefer using spilt() to place the record into named fields like $linkHref, $linkDesc, rather than array buckets. A little easier to remember what is what, when you get down a few 100 lines of code later.

Actually I ended up just using your code... its alot cleaner than mine and its easy to expand when I decide to expand it. Right now theres just tgp and fs but I want to have add premium and avs and blogs eventually. With my code it would be a mess but with yours its pretty simple

Thanks Tickler
WB
__________________
Submit Your TGP Galleries
WarBot is offline   Reply With Quote