Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $user = "root";
- $password = "";
- $conn = new mysqli($servername, $user, $password);
- SELECT * FROM $servername;
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- echo "Connected successfully";
- if ($inputuser == $serveruser)
- if($inputpass == $serverpass) {
- header('Location: home.php');
- } else {
- echo "Failure to connect";
- }
- ?>
Add Comment
Please, Sign In to add comment