am having a problem in incrementing the number automically into the database every the when save. The initial number i want it to be 001 in a text box and when i save it, it should increment into 002 and so on. And every time i load the web page after i have close it, it should read the previous number which i stored last into the database.
kuki123
0
Newbie Poster
Recommended Answers
Jump to Postdo you get the previous number, if so then after you increment it you should format it to string to make it 002. if you are not getting the previous number correctly you should add order by id desc.
Fake signature snipped
All 3 Replies
Incognitus
0
Newbie Poster
Lucaci Andrew
140
Za s|n
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
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.