From df7acdd92e7d47ffffbbb00e551adefff5f514ff Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Wed, 11 Mar 2009 14:16:00 +0000 Subject: support simple OR queries by introducing the magic scalar value "OR" --- it_dbi.class | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/it_dbi.class b/it_dbi.class index ce11a49..56fadbb 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -273,7 +273,10 @@ function _where($params = "", $link = null, $omit_where = false) { if (is_int($field)) /* no key specified; just append */ { - $stringquery .= " $value"; + if (strcasecmp($value, 'OR')) + $stringquery .= " $value"; + else + $sep = ' OR '; } else { -- cgit v1.2.3