Advertisement
Guest User

config.php

a guest
May 31st, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. $con = new mysqli (
  2. ## Enter your MySQL connection information below! ##
  3.   'localhost', /*host*/
  4.    'root', /*Username*/
  5.    '', /*password*/
  6.    'testdb' /*dbname*/
  7. );
  8.  
  9.    if (mysqli_connect_errno()) {
  10.       printf("Connection failed: ", mysqli_connect_error());
  11.    }
  12.    mysqli_select_db($con,"testdb");
  13.  
  14. mysqli_close($con)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement