Commit 1d10adb88c51fc197e86760d08c953d4e3745a39

Authored by kevin
1 parent ce5e6320

News.php modif Kevin

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
news.php
... ... @@ -2,7 +2,7 @@
2 2 require_once("creds.php");
3 3 $link = mysql_connect(__MYSQL_HOSTNAME__, __MYSQL_USERNAME__, __MYSQL_PASSWORD__)
4 4 or die("Impossible de se connecter : " . mysql_error());
5   - echo 'Connexion reussie';
  5 +
6 6  
7 7 if(!mysql_select_db('crep', $link)){
8 8 echo 'Selection de la base de donnees impossible';
... ... @@ -32,8 +32,7 @@
32 32 echo '</div></div>';
33 33 }
34 34  
35   - //On libere l'espace de resultat.
36   - mysql_free_result($result);
  35 + //On libere l'espace de resultat
37 36 mysql_close($link);
38 37 ?>
39 38  
... ...