Please could you help me what is the error in the following php code to update a record where the record mail is taken in the database ... when executing it I jump to the automatic error "noUpdate". I appreciate your help so that the sentence is executed correctly and take "updates". Here is the code of my script:
<?php
$hostname_localhost="mysql.webcindario.com";
$database_localhost="android";
$username_localhost="android";
$password_localhost="0000";
$conexion=mysqli_connect($hostname_localhost,$username_localhost,$password_localhost,$database_localhost);
$nombre = $_POST["nombre"];
$correo = $_POST["correo"];
$telefono = $_POST["telefono"];
$direccion = $_POST["direccion"];
$clave = $_POST["clave"];
$ciudad = $_POST["ciudad"];
$sql="UPDATE registro SET nombre_apellido= ? , correo= ?, telefono=?, direccion=?, clave=? , ciudad=? WHERE correo=?";
$stm=$conexion->prepare($sql);
$stm->bind_param('ssssi',$nombre,$correo,$telefono,$direccion,$clave,$ciudad);
if($stm->execute()){
echo "actualiza";
}else{
echo "noActualiza";
}
mysqli_close($conexion);
?>