Changeset 709 for trunk/includes/Database.php
- Timestamp:
- Jan 5, 2014, 2:07:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Database.php
r608 r709 64 64 function query($Query) 65 65 { 66 if($this->ShowSQLQuery == true) $QueryStartTime = microtime(); 66 67 $this->LastQuery = $Query; 67 if($this->ShowSQLQuery == true)68 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>'."\n");69 68 if($this->LogSQLQuery == true) 70 69 file_put_contents($this->LogFile, $Query."\n", FILE_APPEND); 71 70 $Result = new DatabaseResult(); 72 71 $Result->PDOStatement = $this->PDO->query($Query); 72 if($this->ShowSQLQuery == true) 73 { 74 $Duration = ' ; '.(microtime() - $QueryStartTime). ' s'; 75 echo('<div style="border-bottom-width: 1px; border-bottom-style: solid; padding-bottom: 3px; padding-top: 3px; font-size: 12px; font-family: Arial;">'.$Query.$Duration.'</div>'."\n"); 76 } 73 77 if($Result->PDOStatement) 74 78 {
Note:
See TracChangeset
for help on using the changeset viewer.