Advertisement
Guest User

Slesh

a guest
Feb 4th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Login</title>
  5. <meta charset="utf-8">
  6. <link rel="stylesheet" href="css/common.css" type="text/css">
  7. <script src="script/myscript.js"></script>
  8. </head>
  9. <body onload="pload()">
  10. <img src="img/logo.png" alt="logo">
  11. <p id="date1">DATE</p>
  12. <p id="time1">TIME</p>
  13. <h3>Navigation</h3>
  14. <nav>
  15. <ul>
  16. <li><a href="home.html">Home</a></li>
  17. <li><a href="login.html">Login</a></li>
  18. <li><a href="addedit.html">New User</a></li>
  19. <li><a href="aboutus.html">About Us</a></li>
  20. <li><a href="contactus.html">Contact Us</a></li>
  21.  
  22. </ul>
  23. </nav>
  24. <h1>Welcome to Shailesh Insurance</h1>
  25. <h2>Place to order </h2>
  26.  
  27. <?php
  28. //declare all variables for db connection
  29. $dbserver="localhost:3307";
  30. $dbuser="root";
  31. $dbpassword="";
  32. $dbname="sbdb2019";
  33. //create connection
  34. $conn=new mysqli($dbserver,$dbuser,$dbpassword,$dbname);
  35. //check connection error
  36. if($conn->connect_error==true){
  37. die("connection failed error description $conn->Connect_error");
  38. }else{
  39. echo "<p id='dbs'>Connection Success</p>";
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement