Introduction - Query

Introduction - Query -- Performing a queries

Description

To perform a query against a database you have to use the function query(), that takes the query string as an argument. On failure you get a DB_Error object, check it with DB::isError(). On success you get DB_OK or when you set a SELECT-statment a DB_result object.

query() can be used instead of prepare() and execute(), if you set the $params parameter and your query uses placeholders.