SHARE
TWEET

connection.php

phpvira Oct 4th, 2017 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $servername = 'localhost';
  4. $db_name = 'ispit1';
  5. $username = 'root';
  6. $password = '';
  7.  
  8.  
  9. try{
  10.  
  11.         $db = new PDO('mysql:host='  .$servername.
  12.         ';dbname=' .$db_name. ';charset=utf8', $username, $password);
  13. }   catch (Exception $e){
  14.         echo $e->getMessage();
  15. }
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. ?>
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