doulei1965 2013-04-03 11:08
浏览 103
已采纳

Mysql / php - 身份证号码达到9999并从0001开始计算

I have a PHP website which takes customer applications. Each application is given an ID number which is incremental.

Recently the site reached application id number 9999 but instead of continuing on to 10000 it reverted back to 0001

Any ideas why this happened - perhaps some kind of php or mysql setting, range or limit?!

Thanks in advance

  • 写回答

3条回答 默认 最新

  • doo6568 2013-04-04 06:58
    关注

    yes there was some forming applied in the php to limit to 4 digits (0000) so when it reached 10000 it was cutting off the first 1. This was causing it to appear as 0001 etc in the backend and other places...

    As a consequence it was also sending out the cut version of the id nmber in emails to applicants and causing all sorts of mess lol!

    Took a while to find the right file because the original coder is not available!

    Thanks to all.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序