If a key is specified, the key is used at the field name and the value
as a comparison. If a key is not used, the value is used as the clause.
public static BuildSQLWhereClause ( array $whereArray ) : string | ||
$whereArray | array | An associative array containing the column names as keys and values as data. The values must be SQL ready (i.e. quotes around strings, formatted dates, ect) |
return | string | Returns a string containing the SQL WHERE clause |