Advertisement
EkoDLuffy

config.php

Nov 30th, 2016
7,917
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2.  
  3.     if(!isset($dbh)){
  4.         session_start();
  5.         date_default_timezone_set("UTC");
  6.         $musername = "root";
  7.         $mpassword = "";
  8.         $hostname  = "localhost";
  9.         $dbname    = "chatting"; //nama database yang telah dibuat
  10.         $dbh=new PDO('mysql:dbname='.$dbname.';host='.$hostname.";port=3306",$musername, $mpassword);
  11.        
  12.         include("user_online.php");
  13.     }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement