Commit bad01aa446868ee74e39e76e55a052158c47c2b1
1 parent
9751cff6
modification dans le fichiers news.php Kevin
Showing
1 changed file
with
28 additions
and
0 deletions
Show diff stats
news.php
@@ -0,0 +1,28 @@ | @@ -0,0 +1,28 @@ | ||
1 | +<div class="jumbotron"> | ||
2 | +<?php | ||
3 | + $serveur=""; | ||
4 | + $user=""; | ||
5 | + $password=""; | ||
6 | + $link = mysql_connect($serveur, $user, $password) | ||
7 | + or die("Impossible de se connecter : " . mysql_error()); | ||
8 | + echo 'Connexion réussie'; | ||
9 | + | ||
10 | + $requete=""; | ||
11 | + $resultat = mysql_query($requete); | ||
12 | + | ||
13 | + //Pour debugger | ||
14 | + if (!$resultat) { | ||
15 | + $message = 'Requête invalide : ' . mysql_error() . "\n"; | ||
16 | + $message .= 'Requête complète : ' . $query; | ||
17 | + die($message); | ||
18 | + } | ||
19 | + | ||
20 | + while ($row = mysql_fetch_assoc($resultat)) { | ||
21 | + //On execute les traitements lié a la requete. | ||
22 | + } | ||
23 | + | ||
24 | + //On libere l'espace de resultat. | ||
25 | + mysql_free_result($result); | ||
26 | + mysql_close($link); | ||
27 | +?> | ||
28 | +</div> |