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