PEAR-Handbuch | ||
---|---|---|
Zurück | Nach vorne |
Adds items to the where part of a SQL query. Calling this without any arguments clears the where condition. The default behavior is to add 'AND' to the existing conditions, use the $logic parameter to append OR conditions.
string $cond - condition to add, or blank to reset the conditions
string $logic - optional logic "OR" (defaults to "AND")
Beispiel 34-1. Using whereAdd()
|
Beispiel 34-2. Resulting SQL
|
Zurück | Zum Anfang | Nach vorne |
->selectAdd() | Nach oben | ->escape() |