RE: [PHP] Image in For loop

From: Date: Thu, 14 Sep 2000 00:25:45 +0000
Subject: RE: [PHP] Image in For loop
Groups: php.general 
Request: Send a blank email to php-general+get-16663@lists.php.net to get a copy of this message
> For the life of me I cannot get this to work, all I seem to > be getting is > > Category name (image) > Category data in a table (single line of data) > Image (anchor link) ***** > Category data (second line of data) > Image (anchor link) At the point I've marked with a *****, you should check the category ID / name of the next row in the table. If it is identical, don't display the link. If it is different, you've reached the end of a category and thus should display the link. Caveat: Make sure you have another row in the results before you do the check - if you're on the last row of results, you can assume you're at the end of the category and thus display the link. (Now, charge them extra for the privilege, and thus preserve your status as a miracle worker ;)) Jason

« previous php.general (#16663) next »