Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Is it possible to make pID your model number automatically?


Recommended Posts

Is it possible to make your pID your model number automatically.. for instance.. when you created a new product and you save it... it automatically add the pID to your model field..


Thank you!

Yes... I don't know if this can be done within the same query, by saying products_model = products_id, or if you'll have to run a 2nd query w/ the $insert_id variable that's created from the first, and say "update " . TABLE_PRODUCTS . " set products_model = products_id where products_id = '" . (int)$insert_id . "'"... But one of those 2 methods should work for it :)



Richard Lindsey

Link to comment
Share on other sites


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

  • Create New...