PHP beginner |
|
$arrOutput = array();
$sQuery =
mysql_query("
SELECT id, gebruikersnaam
FROM leden
WHERE tijdhandeling > ".(time()-$sTime)." AND status = 'Online'
");
while ($obj = mysql_fetch_object($sQuery))
{
$arrOutput[] = $obj->gebruikersnaam;
}
echo implode(",", $arrOutput);
$sQuery = SELECT id, gebruikersnaam FROM leden WHERE tijdhandeling > ".(time()-$sTime)." AND status = 'Online' "); { $arrOutput[] = $obj->gebruikersnaam; }
|