I have the following PHP function that adds a row to the table:
$idmusica = $_GET['idmusica'];
$queryvota=("
INSERT INTO euk_sugestoes_votos (idusuario, idmusica)
VALUES ($userid, $idmusica)
");
The table has this structure:
id | idusuario | idmusica
But I wanted you to check if this line with idusuario and idmusica already exists. If it already exists, it should ignore, otherwise it inserts.
How can I do this verification?
Thank you!