Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "koneksi.php";
- $response = array();
- $id = $_POST["id_user"];
- $nama = $_POST["nama"];
- $email = $_POST["email"];
- $password = $_POST["password"];
- $sql = mysql_query("UPDATE user SET nama='$nama', email='$email', password = '$password' WHERE id_user='$id'");
- if($sql)
- {
- $response["success"] = 1;
- $response["message"] = "Data berhasil di Update";
- echo json_encode($response);
- }else{
- $response["success"] = 0;
- $response["message"] = "Data gagal di Update";
- echo json_encode($response);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement