Changeset 7431 for temp/trunk/data/class


Ignore:
Timestamp:
2006/11/06 12:06:29 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_Query.php

    r6270 r7431  
    177177        $strval = ''; 
    178178        $find = false; 
     179         
     180        if(count($sqlval) <= 0 ) return false; 
     181         
    179182        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; 
    183190                } else { 
    184                     $strval .= '?,'; 
    185                     if($val != ""){ 
    186                         $arrval[] = $val; 
    187                     } else { 
    188                         $arrval[] = NULL; 
    189                     } 
     191                    $arrval[] = NULL; 
    190192                } 
    191                 $find = true; 
     193            } 
     194            $find = true; 
    192195        } 
    193196        if(!$find) { 
Note: See TracChangeset for help on using the changeset viewer.