
It prints On-Line correctly and if I echo the no_users_on-line separately - that works too ?
ANY help offered? will be appreciated....

Thanks.
<?php
/**
* @package (c) 2008 - 2015 Gnu Arcade Script
* @version $Id: user_online.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
if (!defined('IN_ARCADE')) {die('Please use the front door');}
include "includes/db-global.php";
include "includes/config.php";
echo '
'.IMG_TSL.''.$lang['users_online'].''.IMG_TSR.''.SCRST.'
<table class="width100" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="content-a center">
<div style="vertical-align: top; text-align: left;">';
$stmt = $database->query("SELECT status, username FROM " . USERS_TABLE . " WHERE status!=0 ORDER BY username ASC");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach($results as $row)
{
$status_ol = intval($row['status']);
$status = htmlEsc($row['username']);
if($status_ol >= time()-15*60){
echo '<div style="display: inline; vertical-align: top; font-weight: bold; font-size: 11px;"> '.$status.', </div>';
}
}
if($status_ol == 0){echo '<div style="font-weight: bold; font-size: 11px; text-align: center;">'.$lang['no_users_online'].' </div>';}
echo '
</div>
</td>
</tr>
</table>
'.SCRSB.''.IMG_TSB.'';
?>
/**
* @package (c) 2008 - 2015 Gnu Arcade Script
* @version $Id: user_online.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
if (!defined('IN_ARCADE')) {die('Please use the front door');}
include "includes/db-global.php";
include "includes/config.php";
echo '
'.IMG_TSL.''.$lang['users_online'].''.IMG_TSR.''.SCRST.'
<table class="width100" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="content-a center">
<div style="vertical-align: top; text-align: left;">';
$stmt = $database->query("SELECT status, username FROM " . USERS_TABLE . " WHERE status!=0 ORDER BY username ASC");
$stmt->execute();
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach($results as $row)
{
$status_ol = intval($row['status']);
$status = htmlEsc($row['username']);
if($status_ol >= time()-15*60){
echo '<div style="display: inline; vertical-align: top; font-weight: bold; font-size: 11px;"> '.$status.', </div>';
}
}
if($status_ol == 0){echo '<div style="font-weight: bold; font-size: 11px; text-align: center;">'.$lang['no_users_online'].' </div>';}
echo '
</div>
</td>
</tr>
</table>
'.SCRSB.''.IMG_TSB.'';
?>