SHARE
TWEET

conn.php

a guest Jun 17th, 2019 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. // Connection to db page
  4.  
  5. // Setting variables and connection
  6. $server = "localhost";
  7. $user = "root";
  8. $password = "";
  9. $db = "testphp_1";
  10. $conn = mysqli_connect($server,$user,$password,$db);
  11.  
  12. // Opening Connection and handling error
  13. if(!$conn){ exit("Failed to Connect with DataBase."); }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top