Rother2005 Posted January 15, 2007 Share Posted January 15, 2007 is there code to get a autonumber to input when user submits a form? Link to comment https://forums.phpfreaks.com/topic/34308-autonumber-for-order-id/ Share on other sites More sharing options...
soycharliente Posted January 15, 2007 Share Posted January 15, 2007 I'm not sure I understand your question. Link to comment https://forums.phpfreaks.com/topic/34308-autonumber-for-order-id/#findComment-161380 Share on other sites More sharing options...
Rother2005 Posted January 15, 2007 Author Share Posted January 15, 2007 rite umm....i want the orderID to be generated by the code/database woteva everytime a order is placed to keep track so for example the 1st order EVER placed will be 1 then 2,3,4,5 so on..... Link to comment https://forums.phpfreaks.com/topic/34308-autonumber-for-order-id/#findComment-161383 Share on other sites More sharing options...
soycharliente Posted January 16, 2007 Share Posted January 16, 2007 Use a table with field called id or orderID, make it an int(32), and tell it to auto increment. Each time a new row is added, it will automatically assign that row a number in sequential order starting from 1. Link to comment https://forums.phpfreaks.com/topic/34308-autonumber-for-order-id/#findComment-161587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.