Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "ofir321";
- // Create connection
- $conn = mysqli_connect($localhost, $name, $password);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }else {
- echo "Connected successfully";
- }
- mysqli_close($conn);
- ?>
- </body>
- </html>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Page Title</title>
- </head>
- <body>
- <h1 style="background-color:DodgerBlue;">checklist</h1>
- <form action="connect.php" method="post">
- Name: <input type="text" name="name"><br>
- <input type="submit">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement