no message
parent
54453428c3
commit
0dbccb5572
|
@ -15,7 +15,7 @@ class XmJobCnt extends Model
|
|||
public $tableName = 'xmjobcnt';
|
||||
public function getAll($limit,$offset) {
|
||||
$db = static::getDB();
|
||||
$query = 'SELECT * FROM xmjobcnt ' . 'limit ' . strval($limit) . ' offset ' . strval($offset);
|
||||
$query = 'SELECT * FROM xmjobcnt ORDER BY `timestamp` desc ' . 'limit ' . strval($limit) . ' offset ' . strval($offset);
|
||||
$stmt = $db->query($query);
|
||||
return $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue