Jump to content

echoing data from two tables joined


holz_bee

Recommended Posts

Hello

 

i didnt know what section to put this in but im haveing trouble echoing information

 

in my SQL part i have joined two table

 

 

where DVD.DVD_ID = REVIEW.DVD_ID

 

I want to do this on my site so i can recall the title of a dvd stored in the DVD table no the review one but i can not get it to echo ill paste you a bit of code it works without joing so my varibles are ok.

 

SELECT * FROM DVD REVIEW where DVD.DVD_ID =REVIEW.DVD_ID
and DVD.Title= '$Title'";

 

 

i want to now echo information from these tables for example customer_ID from review and DVD_Title from DVD

 

echo($row["REVIEW.Customer_ID"]);

echo($row["DVD.Title"};

 

how do i tell it what table to look in have tried various way but none work!

 

 

Thank you for your help :)

 

Holly

 

Link to comment
https://forums.phpfreaks.com/topic/48939-echoing-data-from-two-tables-joined/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.