Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing orders_id


mtamoor

Recommended Posts

Hi

 

I want to increment my orders_id each time by 25 numbers when creating a new order row in Order's table.

 

I have tried to do this by getting the last_insert_id and adding 25 to it and then assigning it to the variable in array, before inserting data in the Orders table. But it just worked once. From next time it is auto_incrementing by 1 as usual. And my changes in code are having no effect.

 

Can someone identify what can be wrong? or if you have done this please tell me.

 

Regards.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...