php生成排号,该怎么处理

WBOY
Release: 2016-06-13 10:09:15
Original
1276 people have browsed it

php生成排号
我想在html中做一个按钮,点击后用php自动生成像银行系统一样的排号,并插入数据库中,请各位高手帮忙

------解决方案--------------------
DB表格的column是 auto_increment 的,每次insert自动加1.

------解决方案--------------------
關鍵是你的數據是如何排列的,是一整段然後一起插入 還是一條一條,如果是一條一條那麼參照樓上的方法,設計數據庫的時候設計爲int 並且自增,在插入的時候就會自動添加1了。
最好說清楚自己的數據 需求 數據庫的結構.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!