Devja

connect.php

Jan 9th, 2013
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <html>
  2.     <head>
  3.    
  4.     </head>
  5.    
  6.     <body>
  7.    
  8.     <?php
  9.     $server="localhost";
  10.     $user="root";
  11.     $pas="";
  12.    
  13.     $r= musql_connect($server, $user, $pas);
  14.     if(!$r) echo"connessione non riuscita";
  15.     else
  16.         {
  17.             $database="utenti";
  18.             $s=mysql_selectdb($database,$r);
  19.             if(!$s) echo"DB inesistente";
  20.             else echo"Pronto";
  21.         }
  22.     ?>
  23.    
  24.     </body>
  25.  
  26.  
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment