empiredesign
04-27-2004, 04:43 PM
At this point, this is more a matter of theory as opposed to what line for line code I should use.
I populate an array with `mfgID` and `mfgName` from table `mfg`.
Then I pull all the `prodName` and `prodMfg` (which is equal to the mfgID. I know, I should have just called it `mfgID`, but the `mfg` table came about after the original db was setup. I could change it over if it is necessary to accomplish the goal) out of `products` and loop through the results.
THE PROBLEM:
I need to associate the `prodMfg` with `mfgName` to display the manufacturer of the product. I haven't been able to get this to work. Originally, I had put a query to `mfg` to get the `mfgName` inside the loop results, but this made the original results stop looping and I ended up with one product.
I am definitely open to a better way to go about this.
I populate an array with `mfgID` and `mfgName` from table `mfg`.
Then I pull all the `prodName` and `prodMfg` (which is equal to the mfgID. I know, I should have just called it `mfgID`, but the `mfg` table came about after the original db was setup. I could change it over if it is necessary to accomplish the goal) out of `products` and loop through the results.
THE PROBLEM:
I need to associate the `prodMfg` with `mfgName` to display the manufacturer of the product. I haven't been able to get this to work. Originally, I had put a query to `mfg` to get the `mfgName` inside the loop results, but this made the original results stop looping and I ended up with one product.
I am definitely open to a better way to go about this.