return false; } } function add_condition($field, $value = '', $options = array('condition' => 'AND', 'operator' => '=', 'equal' => true)) { if (empty($this->condition)) { $this->condition = ' WHERE '; } else { $this->condition .= ' ' . $options['condition'] . ' '; } if ($options['operator'] == 'LIKE' && $options['equal'] == false) { $value = '%' . $value . '%'; } $this->condition .= $field . $options['operator'] . "'" . $value . "'"; // $this->condition.= $field . ' ' . } function get_operator($type = 'integer') { if ($type == 'integer') { } } function check_type($field) { if (isset($field)) { } } } global $dbModel; $dbModel = new dbModel(); $dbModel->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);