Changeset 12 for trunk/www/database.php
- Timestamp:
- Jun 11, 2009, 9:37:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/database.php
r6 r12 14 14 global $Config; 15 15 16 if($Config['Web']['ShowSQLQuery'] == true) 17 echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; padding-bottom: 3px; padding-top: 3px; font-size: 12px; font-family: Arial;">'.$Query.'</div>'); 16 if($Config['Web']['ShowSQLQuery'] == true) 17 { 18 if(isset($_SERVER['REMOTE_ADDR'])) echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; padding-bottom: 3px; padding-top: 3px; font-size: 12px; font-family: Arial;">'.$Query.'</div>'); 19 else echo($Query."\n"); 20 } 18 21 $Result = parent::query($Query); 19 22 if(($this->error != '') and ($Config['Web']['ShowSQLError'] == true)) 20 echo('<div><strong>SQL Error: </strong>'.$this->error.'<br />'.$Query.'</div>'); 23 { 24 if(isset($_SERVER['REMOTE_ADDR'])) echo('<div><strong>SQL Error: </strong>'.$this->error.'<br />'.$Query.'</div>'); 25 echo('SQL Error: '.$this->error.' '.$Query."\n"); 26 } 21 27 22 28 return($Result);
Note:
See TracChangeset
for help on using the changeset viewer.