Simple Math
| From: | Phillip S. Baker | Date: | Tue, 27 Jun 2000 17:35:29 +0000 |
| Subject: | Simple Math | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3375@lists.php.net to get a copy of this message | ||
I know this is pretty basic, but I am not finding out how to do this in the mathical functions area of the manual.
I am pulling a list of items out of a DB using a while statement.
Now I want to dynamically generate numbers for the list based on how many items are pulled up, not based on an ID in the DB.
So for the first item I would always liek to start with 1 and for the next item that appears in the array to add one and so forth to get a numbered list.
How would I do this?
Thanks
--
Phillip S. Baker
phillip@wordsandimages.com
Words & Images, Inc.
1535 Seabright Avenue, Suite 100, Santa Cruz, CA 95062
Direct Line (831) 420-2641 / Fax (831) 458-0808