I made a php page that makes entries in a table, but i want to automatically assign ids that go up a number each time starting with one. Does anyone know enough php and/or mysql to help me?
I would appreciate any assistance.
Page 1 of 1
Php and mysql auto increment id
#2
Posted 14 September 2011 - 07:42 PM
Set auto_increment for that field in mysql and pass that field an empty value on insert (if you're passing an array of named fields).
This post has been edited by Renaissance-Design: 14 September 2011 - 07:45 PM
#3
Posted 14 September 2011 - 07:52 PM
how do i do that. I dont really have any knowledge in editing features of mysql accept for messing with tables and such.
This post has been edited by wolf125: 14 September 2011 - 07:53 PM
#4
Posted 14 September 2011 - 07:56 PM
I also would like to know how to make the table show entries in order of id by default.
Share this topic:
Page 1 of 1
Help














