Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for phpMyEdit/extensions/phpMyEdit-report.class.php between version 1.13 and 1.14

version 1.13, 2008/11/11 04:46:39 version 1.14, 2017/06/09 15:02:37
Line 17 
Line 17 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/extensions/phpMyEdit-report.class.php,v 1.12 2006-01-22 21:44:23 nepto Exp $ */  /* $Platon: phpMyEdit/extensions/phpMyEdit-report.class.php,v 1.13 2008-11-11 04:46:39 nepto Exp $ */
   
 /* Extension TODO:  /* Extension TODO:
   
Line 144  class phpMyEdit_report extends phpMyEdit
Line 144  class phpMyEdit_report extends phpMyEdit
                                 'from'   => $this->tb,                                  'from'   => $this->tb,
                                 'limit'  => $this->sql_limit('1'));                                  'limit'  => $this->sql_limit('1'));
                 $result = $this->myquery($this->get_SQL_query($query_parts), __LINE__);                  $result = $this->myquery($this->get_SQL_query($query_parts), __LINE__);
                 $all_table_cols = array_keys(@mysql_fetch_array($result, MYSQL_ASSOC));                  $all_table_cols = array_keys($this->sql_fetch($result, FETCH_ASSOC));
                 if (count($all_table_cols) <= 0) {                  if (count($all_table_cols) <= 0) {
                         $this->error('database fetch error');                          $this->error('database fetch error');
                         return false;                          return false;
Line 153  class phpMyEdit_report extends phpMyEdit
Line 153  class phpMyEdit_report extends phpMyEdit
                         if (preg_match('/^\d*$/', $field_name))                          if (preg_match('/^\d*$/', $field_name))
                                 continue;                                  continue;
                         if (($idx = array_search($field_name, $all_table_cols)) !== false)                          if (($idx = array_search($field_name, $all_table_cols)) !== false)
                                 $table_cols[$field_name] = mysql_field_len($result, $idx);                                  $table_cols[$field_name] = $this->sql_field_len($result, $idx);
                 }                  }
                 @mysql_free_result($result);                  $this->sql_free_result($result);
                 unset($all_table_cols);                  unset($all_table_cols);
   
                 /*                  /*

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top