error when making a query so that I do not repeat the data

-2

Hello, good morning, I'm doing a system which in a select appears some cedulas and filled some questions and with a button I send the data but I do not want the data to be repeated many times when I hit the send button and I got this error < a href="https://i.stack.imgur.com/tOMxi.png">

    
asked by PlayTutoAlvarez 01.10.2018 в 16:30
source

1 answer

0

The problem is that in your SQL statement it should be like this

SELECT * FROM tecnico_incumplimientos WHERE id_tecnicos = '".$Resultados_tec[0]['id_tecnicos']."' AND id_pregunta = '".$tec_inc_id_pregunta."' 

and the other thing that goes there is that you are only restricting the question

    
answered by 05.10.2018 / 18:16
source