Home Blog Documentation Download Features Forum Users Contact

Adam   2009-01-30

Documentation » Database

cms_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

Returns

Last edited 2009-02-24 16:40:27

Register yourself or Login to add reply.