Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2.  
  3. include("adodb5/adodb.inc.php");
  4. $conn = NewADOConnection('mysqli');
  5.  
  6.  
  7.  
  8. $status = $conn->Connect("127.0.0.1", "root", "admin", "namadatabase");
  9.  
  10.  
  11.  
  12. if($status){
  13.     echo "Connected to DB";
  14. }else{
  15.     die ("can't connect to DB");
  16. }  
  17.  
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement