How do I generate numbers in php that display (for example) Lead Number...

To picture this...
It'look like this (phone numbers are random):

Lead #       Name         Phone
1            Bob          911
2            Jack         119
3            Joey         191
4            Ashley       9110
5            Michael      0119

So how do I create that column on the left that auto numbers each inquiry?

Thanks!

Recommended Answers

All 2 Replies

Figured it out by using this:

                        $count= count(file("CSVFILENAME.csv"));                     
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.