SHARE
TWEET

Untitled

a guest Mar 20th, 2016 25 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $servername = "localhost";
  3. $username = "root";
  4. $password = "mysql";
  5.  
  6. // Create connection
  7. $conn = mysql_connect($servername, $username, $password);
  8. $db = mysql_select_db("learndb",$conn);
  9.  
  10. // Check connection
  11. if (!$conn) {
  12.     die('Database not connected');
  13.     }
  14. else {
  15.     echo 'Database Connected';
  16. }
  17.  
  18. ?>
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