Advertisement
Guest User

GIO

a guest
Nov 14th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2.      include "conexion.php";
  3.      $id = $_POST['id_usuario'];
  4.      
  5.      $sentencia =  $conexion->prepare("select * from persona where id=?");
  6.      $sentencia -> bind_param('ss',$ID);
  7.      $sentencia->execute();
  8.  
  9.      $resultado = $sentencia->get_result();
  10.      
  11.      if($fila =  $resultado->fetch_assoc()){
  12.     echo json_encode($fila, JSON_UNESCAPED_UNICODE);
  13.      }
  14.    
  15.      $sentencia->close();
  16.      $conexion->close();
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement