Answer the question
In order to leave comments, you need to log in
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();
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question