summaryrefslogtreecommitdiff
path: root/final/app/include/connect.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'final/app/include/connect.inc.php')
-rw-r--r--final/app/include/connect.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/final/app/include/connect.inc.php b/final/app/include/connect.inc.php
new file mode 100644
index 0000000..0bc0a10
--- /dev/null
+++ b/final/app/include/connect.inc.php
@@ -0,0 +1,14 @@
+<?php
+/*
+ * Param&egrave;tres de connexion &agrave; la base MySQL
+ */
+
+// $bd repr&eacute;sente le nom de la database &agrave; utiliser
+$bd = "awor";
+// mysql_connect(<nom_ou_ip_serveur_mysql>, <utilisateur_mysql>, <mot_de_passe_en_clair_mysql>);
+$link = @mysql_connect('localhost', 'awor', 'blagnac');
+
+@mysql_select_db($bd , $link);
+
+// NB : La gestion d'erreur est inhib&eacute;e. Cet include ne g&eacute;n&egrave;rera jamais de code, m&ecirc;me si la connexion n'a pas pu &ecirc;tre &eacute;tablie
+?> \ No newline at end of file