Changeset 33 for database.php
- Timestamp:
- Mar 12, 2009, 6:01:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
database.php
r30 r33 8 8 var $Prefix = ''; 9 9 var $LastQuery = ''; 10 var $ShowError = 0;11 10 12 11 function query($Query) 13 12 { 14 $this->LastQuery = $Query; 13 global $Config; 14 15 if($Config['Web']['ShowSQLQuery'] == true) 16 echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: silver; padding-bottom: 2px; padding-top: 2px; font-size: 12px; font-family: Arial;">'.$Query.'</div>'); 17 $this->LastQuery = $Query; 15 18 $DbResult = parent::query($Query); 16 if(($this-> ShowError == TRUE) and ($this->error != ''))19 if(($this->error != '') and ($Config['Web']['ShowSQLError'] == true)) 17 20 { 18 21 echo('<strong>Database error:</strong> '.$this->error.'<br />'); … … 70 73 $Value = strtr($Value, '"', '\"'); 71 74 if($Value != 'NOW()') $Value = "'".$Value."'"; 72 $Values .= ", ".$Key."=".$Value;75 $Values .= ", `".$Key."`=".$Value; 73 76 } 74 77 $Values = substr($Values, 2);
Note:
See TracChangeset
for help on using the changeset viewer.