fix timestamp for real
This commit is contained in:
@@ -115,7 +115,7 @@ if (!empty($_SESSION["kod"]) && !empty($_SESSION['listeners']) && !empty($_SESSI
|
|||||||
';
|
';
|
||||||
if ($stmt7->num_rows > 0){
|
if ($stmt7->num_rows > 0){
|
||||||
while ($stmt7->fetch()){
|
while ($stmt7->fetch()){
|
||||||
$chatadm = $chatadm . '<tr><td>' . $author . '</td><td>' . $tmstmp . ' GMT</td><td>' . $message . '<td><button onclick="deleteit(' . $idckochat . ')">Delete</button></td></tr>' . "\n";
|
$chatadm = $chatadm . '<tr><td>' . $author . '</td><td>' . $timestamp . ' GMT</td><td>' . $message . '<td><button onclick="deleteit(' . $idckochat . ')">Delete</button></td></tr>' . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$chatadm = $chatadm . '</table>';
|
$chatadm = $chatadm . '</table>';
|
||||||
@@ -235,7 +235,7 @@ if (!empty($_GET['chat'])){
|
|||||||
$data = "";
|
$data = "";
|
||||||
if ($stmt10->num_rows() > 0) {
|
if ($stmt10->num_rows() > 0) {
|
||||||
while ($stmt10->fetch()){
|
while ($stmt10->fetch()){
|
||||||
$data = $data . '• ' . $author . ' on ' . date("d.m.Y H:i:s", intval($tmstmp)) . ' GMT said: ' . $msg . "\n";
|
$data = $data . '• ' . $author . ' on ' . $tmstmp . ' GMT said: ' . $msg . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo $data;
|
echo $data;
|
||||||
|
Reference in New Issue
Block a user