Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index.php
- #####################
- <html>
- <head>
- <meta charset="utf-8">
- <title>Checker</title>
- <style>
- body {
- background-color: #e9edf5;
- }
- </style>
- </head>
- <body>
- <center>
- <p align="center" style="color:#000000; font-size:60px"><font style="font-family:comic sans ms,cursive">Checker</font></p>
- <p align="center" style="color:#000000;"><font style="font-family:comic sans ms,cursive"><a href="https://vk.com/witcher2k20" target="_blank">by vk.com/witcher2k20</a></font></p>
- <table>
- <form action="result.php" method="post">
- <tbody>
- <tr>
- <td>
- <font style="color:#000000">Ник<font>
- </td>
- <td>
- <input type="text" name="nick" size="50">
- </td>
- <td>
- <input type="submit">
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- <center>
- </body>
- </html>
- ###############################
- result.php
- ###############################
- <?php
- include_once("db.php");
- $username = $con->real_escape_string(htmlentities($_POST['nick']));
- $result = $con->query("SELECT * FROM `authme` WHERE `realname` = '$username'");
- $row = $result->fetch_assoc;
- echo $row['password'];
- ?>
- #################################
- db.php
- #################################
- <?php
- $host = '54.36.333.138';
- $database = 'db';
- $user = 'db';
- $password = 'pass';
- $con = mysqli_connect($host, $user, $password, $database);
- $con->set_charset("utf8");
- ?>
- ##################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement