Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

Diff for phpMyEdit/phpMyEdit.class.php between version 1.221 and 1.222

version 1.221, 2017/05/23 15:18:23 version 1.222, 2017/06/08 11:56:19
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.220 2015/09/07 16:02:40 igor Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.221 2017/05/23 15:18:23 igor Exp $ */
   
 /*  This is a generic table editing program. The table and fields to be  /*  This is a generic table editing program. The table and fields to be
         edited are defined in the calling program.          edited are defined in the calling program.
Line 35 
Line 35 
           original table view (Pass 1).            original table view (Pass 1).
 */  */
   
   define('FETCH_ASSOC', 0);
   define('FETCH_NUM',   1);
   define('FETCH_BOTH',  2);
   
   
 class phpMyEdit_timer /* {{{ */  class phpMyEdit_timer /* {{{ */
 {  {
         var $startTime;          var $startTime;
Line 444  class phpMyEdit
Line 449  class phpMyEdit
                 return $ret;                  return $ret;
         } /* }}} */          } /* }}} */
   
           function sql_fetch_array($result, $result_type = FETCH_BOTH) /* {{{ */
           {
                   if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
                           switch($result_type) {
                                   default:
                                   case FETCH_BOTH:  $type = MYSQLI_BOTH; break;
                                   case FETCH_NUM:   $type = MYSQLI_NUM; break;
                                   case FETCH_ASSOC: $type = MYSQLI_ASSOC; break;
                           }
                           return mysqli_fetch_array($result, $type);
                   } else { // FOR OLD PHP
                           switch($result_type) {
                                   default:
                                   case FETCH_BOTH:  $type = MYSQL_BOTH; break;
                                   case FETCH_NUM:   $type = MYSQL_NUM; break;
                                   case FETCH_ASSOC: $type = MYSQL_ASSOC; break;
                           }
                           return mysql_fetch_array($result, $type);
                   }
           } /* }}} */
   
         /* end of sql functions */          /* end of sql functions */
   
         function make_language_labels($language) /* {{{ */          function make_language_labels($language) /* {{{ */

Legend:
Removed from v.1.221  
changed lines
  Added in v.1.222

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