Last active
January 18, 2018 09:10
-
-
Save netwons/c2dc5c7caef82b6e1fd426f69b72adf4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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