php inserts duplicate row

PHP Code:

$sql_insert = ”
        INSERT INTO table (my_index, userid, observer, school, started) VALUES 
            (NULL, ‘” . $_GET[’teacher’] . “‘, ‘” . $_GET[’observer’] . “‘, ” . $_GET[’school’] . “, ‘I’)”;
        $result_2 = mysql_query($sql_insert);
        die($sql_insert); 

I checked the script by adding a die() right […]

Original post by epanagio

Leave a Reply