Commit f5d9961d502018bf43774603cedad0a1ed2c144d
1 parent
51844a4d
Added news.php Kevin
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
news.php
1 | <div class="jumbotron"> | 1 | <div class="jumbotron"> |
2 | <?php | 2 | <?php |
3 | - $serveur=""; | ||
4 | - $user=""; | ||
5 | - $password=""; | 3 | + require_once("creds.php"); |
4 | + $serveur=MYSQL_HOSTNAME; | ||
5 | + $user=MYSL_USER; | ||
6 | + $password=MYSQL_PASSWORD; | ||
6 | $link = mysql_connect($serveur, $user, $password) | 7 | $link = mysql_connect($serveur, $user, $password) |
7 | or die("Impossible de se connecter : " . mysql_error()); | 8 | or die("Impossible de se connecter : " . mysql_error()); |
8 | echo 'Connexion réussie'; | 9 | echo 'Connexion réussie'; |
9 | 10 | ||
10 | - $requete=""; | 11 | + $requete=; |
11 | $resultat = mysql_query($requete); | 12 | $resultat = mysql_query($requete); |
12 | 13 | ||
13 | //Pour debugger | 14 | //Pour debugger |