PHP: Connexion à un Serveur BD

Author:


Download

<html>
<head>
<title>Connexion BD</title>
</head>
<body>
<div>
<?php
$username = "root";
$password = "";

$connexion = @mysql_connect( "localhost", $username, $password);
if ( ! $connexion ) {
  die( "Erreur: ".mysql_error() );
}
print "<h2>Exécution réussie</h2>";

mysql_close( $connexion );
?>
</div>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 9 = fourteen