nicholaszen Posted March 9, 2007 Share Posted March 9, 2007 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! Link to comment Share on other sites More sharing options...
Velveeta Posted March 9, 2007 Share Posted March 9, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.