September 14, 201115 yr 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.
September 14, 201115 yr 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). Edited September 14, 201115 yr by Renaissance-Design
September 14, 201115 yr Author how do i do that. I dont really have any knowledge in editing features of mysql accept for messing with tables and such. Edited September 14, 201115 yr by wolf125
September 14, 201115 yr Author I also would like to know how to make the table show entries in order of id by default.
Create an account or sign in to comment