Query
in package
Table of Contents
- __construct() : mixed
- execute() : array<string|int, mixed>
- Executes sql query and handle errors
Methods
__construct()
public
__construct(PDO $conn, string $sql[, array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $conn : PDO
- $sql : string
- $params : array<string|int, mixed> = []
Return values
mixed —execute()
Executes sql query and handle errors
public
execute() : array<string|int, mixed>