Bonjour,
J'ai effectué une requête SELECT, mais l'affichage du résultat pose problème.
Code :
- <?php
- $pseudo = $_SESSION['pseudo'];
- mysql_connect("localhost", "***", "***" ) or die("Impossible de se connecter : " . mysql_error());
- mysql_select_db("bcmlbe" );
- $query = "SELECT users, SUM(manche) as total FROM pronospts GROUP BY users WHERE users='$pseudo'";
- $result = mysql_query($query);
- ?>
- <table align="center" width="750" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="250">
- <p align="left"><b><font face="verdana"><span style="font-size:8pt">Bienvenue </span></font><font face="verdana" color="#ff0000"><span style="font-size:8pt"><?php echo $pseudo; ?></span></font></b></p>
- </td>
- <td width="500">
- <p align="left"><b><font face="verdana"><span style="font-size:8pt">Nombre de points : </span></font><font face="verdana" color="#ff0000"><span style="font-size:8pt"><?php echo $result['total']; ?></span></font></b></p>
- </td>
- </tr>
- </table>
- <?php
- mysql_free_result($result);
- ?>
|
Erreur :
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/www/210749426b69527e61e114f8cf14a606/web/Private/connection.php on line 19
Quelqu'un sait pq ?
Message édité par oli1987 le 01-07-2006 à 10:43:55