hi friends of the community I have a problem I'm doing UPDATE but the problem is that I jump for the alert once and I do not update the record the me you receive the parameters well the only problem is when performing the UPDATE append the code to see what I'm doing wrong.
<?php
if(isset($_GET['actualizar'])){
$sql=$DB_con->prepare("UPDATE usuarios SET cedula=:cedula, nombres=:nombres, apellidos=:apellidos, email=:email WHERE id = :id");
$sql->bindParam(':cedula',$_GET['cedula']);
$sql->bindParam(':nombres',$_GET['nombres']);
$sql->bindParam(':apellidos',$_GET['apellidos']);
$sql->bindParam(':email',$_GET['email']);
$sql->bindParam(':id',$_GET['id']);
$sql->execute();
if($sql)
{
echo "<div class='col s12 card-panel teal lighten-2 center'>
<h5 class='black-text text-darken-2 center CONDENSED LIGHT5'>
¡ Bien Hecho: Registro actualizado Correctamente !
</h5>
</div>";
header("refresh:5;index.php");
}
else
{
echo "<div class='col s12 card-panel blue lighten-2 center'>
<h5 class='black-text text-darken-2 center CONDENSED LIGHT5'>
¡ Ups Aviso: El Registro no se pudo actualizar !
</h5>
</div>";
header("refresh:5;index.php");
}
}
?>