Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>PHP Test</title>
- </head>
- <body>
- <?php echo '<p>Hello World</p>';
- // In the variables section below, replace user and password with your own MySQL credentials as created on your server
- $servername = "localhost";
- $username = "webuser";
- $password = "password";
- // Create MySQL connection
- $conn = mysqli_connect($servername, $username, $password);
- // Check connection - if it fails, output will include the error message
- if (!$conn) {
- die('<p>Connection failed: <p>' . mysqli_connect_error());
- }
- echo '<p>Connected successfully</p>';
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement