Guest User

Untitled

a guest
Dec 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. function protetor() {
  2. $conexao = mysqli_connect("127.0.0.1","root","","protetor");
  3. $id = $_GET['id'];
  4. $dados = mysqli_query($conexao, "SELECT * FROM download WHERE ID = $id");
  5. $download = mysqli_fetch_array($dados);
  6. if (!empty($id)) {
  7. echo $download['link'];
  8. } else {
  9. echo "Link de download não encontrado!";
  10. }
  11. }
Add Comment
Please, Sign In to add comment