Don't know if this is the right forum, but when I want to show something from a database (from 2 tables) I get multiply values.
Example, These values I get from the database
-
Braindead - Action - Test - 2004-09-21
-
Bassie & Adriaan en de diamant - Action - Test - 2004-09-21
-
Braindead - Action - Prut - 2004-09-21
-
Bassie & Adriaan en de diamant - Action - Prut - 2004-09-21
With this SQL statement
$querylistdvd = "SELECT * FROM cdvd, lendout, cdvdgenre WHERE (cdvd.cdvdlendoutid <> '0' AND lendout.lendfromuserid=cdvd.userid AND lendout.lendfromuserid='$userid' AND cdvd.cdvdgenreid=cdvdgenre.genreid) ORDER BY lendout.lendoutdate";
Now in the datbase (phpmyadmin) I have 2 records.
Test has the movie Braindead and Prut has Bassie & Adriaan...
What is wrong with the SQL statement so that I only have 2 records instead of 4 on the php page ?
TIA.