->whereAdd()

->whereAdd()

->whereAdd() -- Add WHERE statement

Description

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.

Parameter

  • string $cond - condition to add, or blank to reset the conditions

  • string $logic - optional logic "OR" (defaults to "AND")

Note

This function can not be called statically.

See

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.