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 | 1 | <div class="jumbotron"> |
2 | 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 | 7 | $link = mysql_connect($serveur, $user, $password) |
7 | 8 | or die("Impossible de se connecter : " . mysql_error()); |
8 | 9 | echo 'Connexion réussie'; |
9 | 10 | |
10 | - $requete=""; | |
11 | + $requete=; | |
11 | 12 | $resultat = mysql_query($requete); |
12 | 13 | |
13 | 14 | //Pour debugger | ... | ... |