MeekroDB Quick Start Docs FAQ
Download GitHub

Misc Variables


Change the character that appears before parameters in MeekroDB queries. The default is %.

DB::$param_char = ':';
$results = DB::query("SELECT * FROM accounts WHERE email=:s", '');


Set this to false if you want NULLs coalesced into empty strings in your insert() statements. This is useful if your MySQL columns have NOT NULL set.

DB::$usenull = false;
DB::insert('accounts', [
  'username' => 'Joe',
  'password' => null    // will become empty string