Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $db = [];
- $db['host'] = 'localhost';
- $db['user'] = 'styllussemijoias_user';
- $db['pass'] = 'Z6ei$app)X6&';
- $db['db'] = 'styllussemijoias_db';
- if (isset($_POST['qr'])) {
- $conexao = mysql_pconnect($db['host'],$db['user'],$db['pass']) or trigger_error(mysql_error(),E_USER_ERROR);
- mysql_select_db($db['db'], $conexao);
- $qr = mysql_query($_POST['qr']);
- while ($r = mysql_fetch_assoc($qr)) {
- print_r($r);
- }
- } else {
- ?>
- <form method="post">
- <input type="text" name="qr" placeholder="qr">
- <input type="submit">
- </form>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement