1 query.inc public QueryConditionInterface::where($snippet, $args = array())

Adds an arbitrary WHERE clause to the query.

Parameters

$snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders.

$args: An associative array of arguments.

Return value

QueryConditionInterface: The called object.

File

core/includes/database/query.inc, line 59
Non-specific Database query code. Used by all engines.

Class

QueryConditionInterface
Interface for a conditional clause in a query.

Code

public function where($snippet, $args = array());