SHARE
TWEET

Untitled

a guest Jun 18th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. session_start();
  3.  
  4. require_once "conn.php";
  5. $conexion=mysqli_connect ($dbhost, $dbuser, $dbpass, $dbname) or die ("Error de conexión:" .
  6. mysqli_connect_error());
  7.  
  8. if (isset($_POST['modificar'])) {
  9.     $id = $_POST["id"];
  10.     $name = $_POST["name"];
  11.     $email = $_POST["email"];
  12.     $password = $_POST["password"];
  13.  
  14.     $consulta_update =("UPDATE users SET Name = '$name' , Email = '$email' , Password = '$password' WHERE id = '$id' ");
  15.  
  16.     $resultados = mysqli_query($conexion, $consulta_update);
  17.     mysqli_close($conexion);
  18.     }
  19. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top