Changeset 7431 for temp/trunk/data/class
- Timestamp:
- 2006/11/06 12:06:29 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/class/SC_Query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_Query.php
r6270 r7431 177 177 $strval = ''; 178 178 $find = false; 179 180 if(count($sqlval) <= 0 ) return false; 181 179 182 foreach ($sqlval as $key => $val) { 180 $strcol .= $key . ','; 181 if(eregi("^Now\(\)$", $val)) { 182 $strval .= 'Now(),'; 183 $strcol .= $key . ','; 184 if(eregi("^Now\(\)$", $val)) { 185 $strval .= 'Now(),'; 186 } else { 187 $strval .= '?,'; 188 if($val != ""){ 189 $arrval[] = $val; 183 190 } else { 184 $strval .= '?,'; 185 if($val != ""){ 186 $arrval[] = $val; 187 } else { 188 $arrval[] = NULL; 189 } 191 $arrval[] = NULL; 190 192 } 191 $find = true; 193 } 194 $find = true; 192 195 } 193 196 if(!$find) {
Note: See TracChangeset
for help on using the changeset viewer.
