When I precede in my " Submit " I execute an insert " Insert " that saves a series of records " X[i+]
":
id,_Nombre,__fecha
a
id,_Nombre,__fecha
1__Juan_____22/12/2000
2__Fulano___22/12/2000
3__Aldo_____22/12/2000
I wish that if I press again my submit to save the current record of that month, I will not allow it if these already exist.
My line of insertions:
include "conn.php"; ($conn)
$query = "INSERT INTO datosp (nombres,fecha) SELECT ('$nombres',CURRENT_TIMESTAMP) FROM usuarios;
sqlsrv_query($conn, $query) or die (print_r( sqlsrv_errors(), true));
Thank you very much.