Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "conexion.php";
- $id = $_POST['id_usuario'];
- $sentencia = $conexion->prepare("select * from persona where id=?");
- $sentencia -> bind_param('ss',$ID);
- $sentencia->execute();
- $resultado = $sentencia->get_result();
- if($fila = $resultado->fetch_assoc()){
- echo json_encode($fila, JSON_UNESCAPED_UNICODE);
- }
- $sentencia->close();
- $conexion->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement