SQL Insert duplicating values : <p>I'm trying to insert data in SQL table, but it's duplicating the values:</p>

<pre><code>    $star1 = trim($_GET['star1']);
    $star2 = trim($_GET['star2']);
    $star3 = trim($_GET['star3']);
    $star4 = trim($_GET['star4']);
    $star5 = trim($_GET['star5']);

$conn = new mysqli($host, $user, $pass, $db);
    if ($conn-&gt;connect_error) {
        die("Desculpe.. Falha ao salvar ");
    } 

    $sql = "INSERT INTO classificacoes (nossa_empresa, produtos_oferecidos,atendimento, colaboradores, indicaria) VALUES ('$star1','$star2','$star3','$star4', '$star5')";
    $conn-&gt;query($sql); 
    if ($conn-&gt;query($sql) != TRUE){
        echo "Erro ao gravar";
    }
    else{
        echo "Gravou";
    }

    mysqli_close($conn);
</code></pre>

<p>That is: The code insert two identincal values in the table.</p>

<p>What's wrong?</p>
