Thank you. This should definitely be done using only one database. Think of it this way.
product table
product_id | product
---------------------------
1 Coca Cola
2 Mountain Dew
inventory table
product_id | size | price
---------------------------
1 8 oz Php 8
1 12 oz Php12
2 12 oz Php 14
Code:
SELECT t1.product_id, t1.product, t2.size, t2.price FROM product t1, inventory t2 WHERE t1.product_id = t2.product_id ORDER BY product
There is a one-to-many relationship between the product and inventory tables. Generally you store the data in the tables in a concise form (no redundant data) and then use reports or scripts to format the output so that it looks nice with non-repeating headings and such. In other words, you use SQL commands to retrieve the data from your tables but you format the data for display on a website, or to print a report, using php and html or some other scripting language. I'm sure Daniel or one of the other geniuses can explain this much better than I.
Bookmarks