hello all. heres my problem. i have a mysql database with 2 tables. the first table is called songs which contains records for all the songs on my site. its columns are song id and song title. the second table is called ratedsongs. its columns are song id (id of the song rated) and member id (id of the member who rated it). i can easily create a table with a list of songs rated by a user with this code...
$ratedsongs = mysql_query ("SELECT * FROM ratedsongs WHERE member_id = '$memberid'");
...what i'm having trouble with is getting the code right that'll display a list of the songs NOT rated by a specific user. i've tried...
$ratedsongs = mysql_query ("SELECT song_id FROM ratedsongs WHERE member_id = '$memberid'");
$unratedsongs = mysql_query ("SELECT * FROM songs WHERE song_id !='$ratedsongs'");
... but that dosent seem to work. its returning a list of all songs. please point me in the right direction. thanks in advance