Advertisement
Guest User

Untitled

a guest
Aug 13th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. //credentails for connecting the server to mysql.
  3. //created by Akhila Sundari , last 4 digits of id is 2771
  4. $servername = "localhost";
  5. $username = "root";
  6. $password = "password";
  7. $dbname = "phpmyadmin";
  8.  
  9. // Create connection between server and mysql
  10. $conn = new mysqli($servername, $username, $password, $dbname);
  11. // Check connection
  12. if ($conn->connect_error) {
  13. die("Connection failed: " . $conn->connect_error); //if any connection error occurs
  14. }
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement