Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 24. október 2026

Rozdiely pre phpMyEdit/phpMyEdit.class.php medzi verziami 1.222 a 1.223

verzia 1.222, 2017/06/08 11:56:19 verzia 1.223, 2017/06/09 15:02:38
Riadok 19 
Riadok 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.221 2017/05/23 15:18:23 igor Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.222 2017/06/08 11:56:19 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.
Riadok 348  class phpMyEdit
Riadok 348  class phpMyEdit
                 }                  }
         } /* }}} */          } /* }}} */
   
         function sql_fetch(&$res, $type = 'a') /* {{{ */          function sql_fetch(&$result, $result_type = FETCH_BOTH) /* {{{ */
         {          {
                 if (version_compare(PHP_VERSION, '7.0.0') >= 0) {                  if (version_compare(PHP_VERSION, '7.0.0') >= 0) {
                         if($type == 'n') $type = MYSQLI_NUM;                          switch($result_type) {
                         else $type = MYSQLI_ASSOC;                                  default:
                         return mysqli_fetch_array($res, $type);                                  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                  } else { // FOR OLD PHP
                         if($type == 'n') $type = MYSQL_NUM;                          switch($result_type) {
                         else $type = MYSQL_ASSOC;                                  default:
                         return @mysql_fetch_array($res, $type);                                  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);
                 }                  }
         } /* }}} */          } /* }}} */
   
Riadok 449  class phpMyEdit
Riadok 457  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:
Odstranené z verzie1.222  
zmenené riadky
  Pridané vo verzii1.223

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok