hello-
help. I've researched these lists, but can't quite put my answer together.
I have a form that imserts data about products into a mysql db. There are several tables. If the company name does not exist, the script inserts the company info entered in the form into the company table. If the company name does exist, I need the script to insert the id of that company from the company table into the product table in the same row as the new product. The id of the company is unique.
I've been trying to do a select but I can't seem to get the syntax correct.
Can someone help with some handholding?
Thank you-