Adam 2009-01-30
Documentation » Databasecms_db_where
Produces SQL WHERE clause for SELECT and UPDATE, i.e.:
null nul => null nul IS NULL
numeric num => 1234 num = 1234
string str => 'string' str = 'string'
plain array ('nam1', 'nam2') nam1 = nam2
node ID id => (1,2) id = 0x00010002
array where1 => ('a', 'b') where1 IN ('a', 'b')
string cms_db_where( array $constraint [, bool $where = true] )
Parameters
- array $constraint Array of constraints
- bool $where Whether in WHERE clause
Returns
- string SQL query
Last edited 2009-02-24 16:40:27
