premier commit
[auf_paf.git] / paf / includes / connection.php
1 <?php
2 $dbhost = 'localhost';
3 $dbuser = 'root';
4 $dbpass = '';
5 $dbname = 'pafauf_bdd';
6
7 $conn = mysql_connect($dbhost, $dbuser, $dbpass,true) or die ('Erreur connexion au mysql');
8 mysql_select_db($dbname,$conn);
9 mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'", $conn);
10 //mysql_set_charset('utf8', $conn) or die("Erreur : "). mysql_error();
11 //echo"Successfully connected to server!!!";
12 ?>