Changeset 187 for trunk/database.php
- Timestamp:
- Apr 5, 2009, 3:54:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/database.php
r153 r187 16 16 $Result = parent::query($Query); 17 17 if(($this->error != '') and ($Config['Web']['ShowSQLError'] == true)) 18 echo('<div><strong>SQL Error: </strong>'.$this->error.'<br >'.$Query.'</div>');18 echo('<div><strong>SQL Error: </strong>'.$this->error.'<br />'.$Query.'</div>'); 19 19 20 20 return($Result); … … 55 55 $Value = strtr($Value, '"', '\"'); 56 56 if($Value != 'NOW()') $Value = "'".$Value."'"; 57 $Values .= ", ".$Key."=".$Value;57 $Values .= ', '.$Key.'='.$Value; 58 58 } 59 59 $Values = substr($Values, 2); … … 69 69 $Value = strtr($Value, '"', '\"'); 70 70 $Name .= ',`'.$Key.'`'; 71 if($Value == 'NOW()') $Values .= ",".$Value;71 if($Value == 'NOW()') $Values .= ','.$Value; 72 72 else $Values .= ',"'.$Value.'"'; 73 73 } 74 74 $Name = substr($Name, 1); 75 75 $Values = substr($Values, 1); 76 //echo('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES ('.$Values.')<br >');76 //echo('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES ('.$Values.')<br />'); 77 77 $this->query('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')'); 78 78 //echo($this->error().'<br>'); … … 83 83 $this->query('SET NAMES "'.$Charset.'"'); 84 84 } 85 86 85 } 87 86
Note:
See TracChangeset
for help on using the changeset viewer.