Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Login</title>
- <meta charset="utf-8">
- <link rel="stylesheet" href="css/common.css" type="text/css">
- <script src="script/myscript.js"></script>
- </head>
- <body onload="pload()">
- <img src="img/logo.png" alt="logo">
- <p id="date1">DATE</p>
- <p id="time1">TIME</p>
- <h3>Navigation</h3>
- <nav>
- <ul>
- <li><a href="home.html">Home</a></li>
- <li><a href="login.html">Login</a></li>
- <li><a href="addedit.html">New User</a></li>
- <li><a href="aboutus.html">About Us</a></li>
- <li><a href="contactus.html">Contact Us</a></li>
- </ul>
- </nav>
- <h1>Welcome to Shailesh Insurance</h1>
- <h2>Place to order </h2>
- <?php
- //declare all variables for db connection
- $dbserver="localhost:3307";
- $dbuser="root";
- $dbpassword="";
- $dbname="sbdb2019";
- //create connection
- $conn=new mysqli($dbserver,$dbuser,$dbpassword,$dbname);
- //check connection error
- if($conn->connect_error==true){
- die("connection failed error description $conn->Connect_error");
- }else{
- echo "<p id='dbs'>Connection Success</p>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement