12 lines
372 B
PHP
12 lines
372 B
PHP
|
<?php
|
|||
|
$connexion = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
|
|||
|
if (!$connexion) {
|
|||
|
print "La page ".$_SERVER['PHP_SELF']." a provoqu<71> une erreur lors de sa tentative de connexion au serveur Mysql.";
|
|||
|
die;
|
|||
|
}
|
|||
|
$selection_de_la_base = mysql_select_db('graydon', $connexion);
|
|||
|
if (!$selection_de_la_base) {
|
|||
|
print "Probleme de s<>lection de la base";
|
|||
|
die;
|
|||
|
}
|
|||
|
?>
|