Return to Snippet

Revision: 8905
at October 13, 2008 10:59 by sebus


Initial Code
define ("SERVEUR", "localhost");
define ("IDENTIFIANT_DB", "xxx");
define ("PASS_DB", "xxx");
define ("BASE", "xxx");
$connexion = @mysql_connect(SERVEUR, IDENTIFIANT_DB, PASS_DB);
if (!$connexion){
print 'Erreur de connexion au serveur MySQL !';
}else{
mysql_select_db (BASE);
}

Initial URL

                                

Initial Description

                                

Initial Title
Connexion Php à un serveur MySQL

Initial Tags
mysql, php

Initial Language
PHP