我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在php中生成连续数字[关闭]

My table call a series of products. With php I generate a row to insert a product. Every time I create a new row it should generate consecutive numbers for each products inserted.

You do not need to generate the ID using PHP, you can set the auto_increment option for the ID field on your database, it will assign the ID automaitcally

You can find better examples and more info here

近期文章

  • 从表中提取最后200条记录[关闭]
  • PHP随机字符串生成器基于GET值[关闭]
  • trim()在此验证检查中实际做了什么?
  • 如何在界面显示隐藏mySQL错误? [关闭]
  • 我想让month()函数返回值为'jan',feb等
  • 如何删除Codeigniter中的特定多记录[关闭]
  • 我怎么能用css和html将php页面下载到pdf中? [关闭]
  • 任何人都可以给我简单的答案(代码)<简单的东西[关闭]
  • 如何在不使用array_count_values()的情况下创建数组?
  • PHP中的这段代码如何容易受到SQL注入攻击?
  • 我可以使用PHP代码获取Android设备的序列号吗? [关闭]
  • PHP输出这么久[重复]
  • PHP代码没有做我想要的
  • 如何制作如下所述的网站[关闭]
  • 将PHP数组转换为Json字符串[重复]
  • 选中下拉框中的值时,启用文本框[关闭]
  • 使用get请求从数据库中删除行是否安全? [重复]
  • 困惑为什么我的PHP包含不起作用[关闭]
  • 重定向问题而不是正确的细节
  • 如果查询为空,mysqli_query会返回什么

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华