Doch wenn ich es bei mir einbaue steht dort nur die anzeige aus der SQL also die sekunden....
Kann mir villeicht jemand helfen?
Das script ist,
PHP Code:
<?php
odbc_exec($mssql, 'USE [CHARACTER_01_DBF]');
$query1 = odbc_exec($mssql, 'SELECT * FROM [CHARACTER_TBL] WHERE m_chAuthority != \'F\'');
while($result = odbc_fetch_array($query1)) {
if($result['MultiServer'] != '0'){
$result['status'] = '<font color="#00FF00">Online</font>';
}else{
$result['status'] = '<font color="#FF0000">Offline</font>';
}
if($result['m_chAuthority'] != 'Z' and 'P'){
$result['auth'] = 'Administrator';
}else{
$result['auth'] = 'Gamemaster';
}
if ($result['TotalPlayTime'] != $seconds) {
$Minuten = floor($seconds / 60);
}else{
$Rest1 = (($seconds / 3600) - $Stunden);
$Minuten = floor($Rest1 * 60);
}
echo '<tr>';
echo '<td>'.$result['m_szName'].'</td>';
echo '<td>'.$result['auth'].'</td>';
echo '<td>'.$result['status'].'</td>';
echo '<td>'.$result['TotalPlayTime'].'</td>';
echo '</tr>';
}
?>