Skip to content

Kirby 5.1.3

$database->execute()

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

$database->execute(string $query, array $bindings = [ ]): bool

Parameters

Name Type Default
$queryrequired string no default value
$bindings array [ ]

Return type

bool

This method modifies the existing $database object it is applied to and returns it again.

Parent class

Kirby\Database\Database