le 30/05/2004 à 19:45
Snifant
slt tlm, Voilà, j'ai une section membre avec des personnes logés et connecté et j'aimerais savoir comment afficher le pseudo des connectés, j'ai fait sa maisbon, j'ai faux, corrigez moi merci ^^
<?
$result=mysql_query("SELECT count(*) as nbusers FROM members WHERE id_session>'".(time()-300)."'");
$val = mysql_fetch_array($result);
echo $val["nbusers"];?></b> <?
if ($val["nbusers"]<=5)
{
echo "( ";
$result=mysql_query("SELECT * FROM members WHERE id_session>'".(time()-300)."'");
while ($val = mysql_fetch_array($result))
echo ")";
}
?>
message d'erreur: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/free.fr/9/4/netwak3/Pokested/index.php on line 193
(
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/free.fr/9/4/netwak3/Pokested/index.php on line 199
merci
<?
$result=mysql_query("SELECT count(*) as nbusers FROM members WHERE id_session>'".(time()-300)."'");
$val = mysql_fetch_array($result);
echo $val["nbusers"];?></b> <?
if ($val["nbusers"]<=5)
{
echo "( ";
$result=mysql_query("SELECT * FROM members WHERE id_session>'".(time()-300)."'");
while ($val = mysql_fetch_array($result))
echo ")";
}
?>
message d'erreur: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/free.fr/9/4/netwak3/Pokested/index.php on line 193
(
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/free.fr/9/4/netwak3/Pokested/index.php on line 199
merci