All pastes #178691 Raw Edit

Quelque chose

public text v1 · immutable
#178691 ·published 2006-09-21 14:22 UTC
rendered paste body
//Affichage nombre de connectés.
    if (mysql_num_rows($onlinerow) <= 1) {
    $txt = 'connecté';
    } else {
    $txt = 'connectés';
 }
	
	$statistiques = '<img src="images/login/puce.jpg" alt=""/>&nbsp;<b><span class="rose3">Il y a '.mysql_num_rows($onlinerow).' '.$txt.'</span></b>';

//Affichage des 5 derniers inscrits.
    $statistiques .= '<br /><img src="images/login/puce.jpg" alt=""/>&nbsp;<b><span class="marron1">Les derniers inscrits:</span></b>';

	$query = doquery("SELECT * FROM {{table}} ORDER by regdate DESC LIMIT 5","users");
 
    $statistiques .= '';
 
    $count = 1;
 
    while ($row = mysql_fetch_array($query))
    {
	if ($onlinerow['charname']) {
    $txt = 'En ligne';
    } else {
    $txt = 'Hors ligne';
    }
    $statistiques .= '<br />- '.stripslashes($row['charname']).' <img src="images/login/'.$txt.'.gif" title="'.$txt.'" alt="'.$txt.'" />';
    }