Id | Remote adresse | Resquest uri | Message | Date log | query('SELECT * FROM blog_logs'); $pages->set_total($query->rowCount()); //On cherche tous les logs $query = $db->query('SELECT * FROM blog_logs ORDER BY log_id DESC '.$pages->get_limit()); while($logs = $query->fetch()) { echo '
---|---|---|---|---|
'.$logs['log_id'].' | '; echo ''.$logs['remote_addr'].' | '; echo ''.$logs['request_uri'].' | '; echo ''.$logs['message'].' | '; sscanf($logs['log_date'], "%4s-%2s-%2s %2s:%2s:%2s", $annee, $mois, $jour, $heure, $minute, $seconde); echo ''.$jour.'-'.$mois.'-'.$annee.' à '.$heure.':'.$minute.':'.$seconde.' | ';
echo '
'; echo $pages->page_links(); } catch(PDOException $e) { echo $e->getMessage(); } ?>