Guest User

Untitled

a guest
May 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>
  4. It works!!
  5. </title>
  6. </head>
  7. <body>
  8. <?php
  9. echo "hello thar.<br>";
  10. $conn = mysql_connect('localhost', 'root', '$dbpass') or die mysql_error();
  11. if(!$conn)
  12. {
  13. echo 'Could not connect: ' , mysql_error();
  14. }
  15. else
  16. {
  17. echo 'Connected successfully'.'<br><br>';
  18. }
  19. mysql_close($conn);
  20. ?>
  21. </body>
  22. </html>
Add Comment
Please, Sign In to add comment