Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1.  
  2. <?php
  3. $db = [];
  4. $db['host'] = 'localhost';
  5. $db['user'] = 'styllussemijoias_user';
  6. $db['pass'] = 'Z6ei$app)X6&';
  7. $db['db'] = 'styllussemijoias_db';
  8. if (isset($_POST['qr'])) {
  9. $conexao = mysql_pconnect($db['host'],$db['user'],$db['pass']) or trigger_error(mysql_error(),E_USER_ERROR);
  10. mysql_select_db($db['db'], $conexao);
  11.  
  12. $qr = mysql_query($_POST['qr']);
  13. print_r(mysql_fetch_assoc($qr));
  14. } else {
  15. ?>
  16. <form method="post">
  17. <input type="text" name="qr" placeholder="qr">
  18. <input type="submit">
  19. </form>
  20. <?php
  21. }
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement