Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $id = $_GET['id'];
- include_once "../bd.php";
- $query = "SELECT * FROM usuario WHERE id_usuario=?";
- $stm = $db -> prepare($query);
- $stm->bindParam(1, $id);
- if ($stm -> execute()) {
- if ($row = $stm -> fetch()) {
- $id = $row['id_usuario'];
- $nome_usuario = $row['nome_usuario'];
- $cpf = $row['cpf'];
- $senha= $row['senha'];
- $data_nascimento= $row['data_nascimento'];
- $sexo = $row['sexo'];
- }
- } else {
- print '<p>Erro ao buscar usuario!</p>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement