Can't seem to get it right. I am trying to join two tables in my form and the WHERE is a variable taken from the URL (www.websiste.com?reference=38)
Both tables have the same commonkey (ProgramCode)
Table 1: programs: id_program | ProgramName | ReleaseDate | ProgramCode
Table 2: ProgramGenre: id_program_genre | ProgramCode | id_genre
I got this but its not working
$sql_select = "SELECT * FROM program
                        INNER JOIN ProgramGenre
                            ON program.ProgramCode = ProgramGenre.ProgramCode               
                    WHERE ProgramCode='$_GET[reference]'";
What am i doing wrong here?
 
     
     
    