Skip to content

Instantly share code, notes, and snippets.

@netwons
Last active January 18, 2018 09:10
Show Gist options
  • Save netwons/c2dc5c7caef82b6e1fd426f69b72adf4 to your computer and use it in GitHub Desktop.
Save netwons/c2dc5c7caef82b6e1fd426f69b72adf4 to your computer and use it in GitHub Desktop.
<?php
if(isset($_POST['edit'])){ ///این دکمه edit است
$name=$_POST['name'];
$lastname=$_POST['lastname'];
$update=" UPDATE m1 SET name='$name', lastname='$lastname' WHERE id=" . $_GET['idq'];
$up=mysqli_query($connection,$update);
if($up){
header("Location: select.php");
}else{echo "error";}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment