Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

PHP: Connexion à un Serveur BD


{filelink=12773}

<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>

No comments yet.

Leave a Comment