db_Delete('dblog'); } $total = $sql -> db_Select("dblog", "*", "ORDER BY `dblog_datestamp` DESC", "no_where"); $query = "SELECT l.*, u.user_name FROM #dblog AS l LEFT JOIN #user AS u ON l.dblog_user_id = u.user_id ORDER BY l.dblog_datestamp DESC LIMIT $from,$amount"; $sql -> db_Select_gen($query); if(!is_object($gen)) { $gen = new convert; } $parms = $total.",".$amount.",".$from.",".e_SELF.'?fm=[FROM]'; $text .= "
Date | Title | Description | User IP | User ID | ||
{$image} | \n"; $text .= "{$datestamp} | \n"; $text .= "{$row['dblog_query']} | \n"; $text .= "{$row['dblog_remarks']} | \n"; $text .= "{$row['dblog_ip']} | \n"; $text .= ($row['user_name']) ? "{$row['user_name']} | \n" : "{$row['dblog_user_id']} | \n"; $text .= "