O
O
Orc2020-06-29 09:42:37
PHP
Orc, 2020-06-29 09:42:37

How to select all records from Flintstone database except the first one?

Connecting and fetching all records from the Flintstone database looks like this:
(Flintstone - https://github.com/fire015/flintstone )

require 'vendor/autoload.php';

use Flintstone\Flintstone;
use Flintstone\Formatter\JsonFormatter;

  // подключаемся к БД "auth"
  $auth = new Flintstone('auth', [

    'dir'       => './database/',
    'formatter' => new JsonFormatter()
  ]);

    // выбираем все записи в таблице
    $data = $auth->getAll();

QUESTION: How to select all records except the first one?
 

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2020-06-29
@z0ddak

No way - you need to get everything and throw out the excess in the code. For example, through array_slice() .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question