Skip to content

Kirby 4.2.0

$database->query()

Executes a sql query, which is expected to return a set of results

$database->query(string $query, array $bindings = [ ], array $params = [ ])

Parameters

Name Type Default
$query * string
$bindings array [ ]
$params array [ ]

Parent class

Kirby\Database\Database