Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is it possible to make pID your model number automatically?


nicholaszen

Recommended Posts

Posted

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!

Posted
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.

Richard Lindsey

Archived

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

×
×
  • Create New...