Php generates an Sn. how can this problem be solved?
Source: Internet
Author: User
Php generates a line number. I want to create a button in html. click it and use php to automatically generate a line number like a bank system and insert it into the database. please help me, the column in the DB table is auto_increment. Each insert operation automatically adds 1 ., it depends on how your data volume is arranged. it is a whole segment and then inserted together to generate a line number.
I want to create a button in html, click it, and use php to automatically generate a line number like a banking system, and insert it into the database. please help
------ Solution --------------------
The column in the DB table is auto_increment, and 1 is automatically added for each insert operation.
------ Solution --------------------
It depends on how your data is arranged, whether it is a whole segment and then inserted together or a condition, if it is a licensed method, the design time is int and auto-increment, 1 is automatically added at the time of insertion.
It is best to clarify the structure of your data requirements.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.