Advertisement
Ventuj

Untitled

Dec 18th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2.  
  3.     //Variabili d'accesso
  4.     $servername = 'cluster023.hosting.ovh.net';
  5.     $username = '';
  6.     $password = '';
  7.     $dbname = '';
  8.     $dbport = '3306';
  9.     $dbserver = 'bmailincsplogin.mysql.db';
  10.    
  11.     //Collegamento al database
  12.     $btwdb = new mysqli(
  13.       $servername,
  14.       $username,
  15.       $password,
  16.       $dbname,
  17.       $dbport,
  18.       $dbserver
  19.     );
  20.    
  21.     if ($btwdb->connect_error) {
  22.         die("Connessione fallita: " . $btwdb->connect_error);
  23.     } else {
  24.         //Connessione eseguita
  25.     }
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement