Try this:
SELECT catname, foodname, food_id, categories.cat_id
FROM categories, foods
WHERE foods.cat_id=categories.cat_id
to organize by category name, add
ORDER BY catname
Paul Davis
http://www.kaosweaver.com/
Visit us for dozens of useful Dreamweaver Extensions.
http://www.communitymx.com/
Partner at Community MX - Extend your knowledge
Siriunson wrote:
> Fair enough & thanks for your honesty!
>
> Ok, Is there a way to get details from 2 database tables
into a single query,
> so I can:
>
> a. Fill dynamic menus?
> b. Export the selections to an xml file?
> c. Eventually add these selections as an order in a new
table.
>
> I have 2 tables, one for food categories (with cat_id
& catname) & one for the
> foods themselves (food_id, cat_id & foodname). What
I am stuck on, is how I can
> join them in a single recordset to fill my dynamic menu?
The reason I would
> like to have a single recordset is because ultimately, I
would like to be able
> to store the menu itself in the database (no table ready
for this yet) & also
> produce an xml file from the menu orders so they can be
imported into Excel.
> Again, I don't yet know how to do this.
>
>
> I'm using php/mysql/phpMyAdmin with DWCS3 on Mac 10.5.2.
>
>