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

Diff for phpMyEdit/phpMyEdit.class.php between version 1.195 and 1.196

version 1.195, 2007/04/13 10:58:23 version 1.196, 2007/05/05 12:00:51
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.189 2006-11-26 13:25:59 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.195 2007-04-13 10:58:23 michal 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 449  class phpMyEdit
Line 449  class phpMyEdit
                                 }                                  }
                                 foreach ($desc['columns'] as $key => $val) {                                  foreach ($desc['columns'] as $key => $val) {
                                         if ($val) {                                          if ($val) {
                                                 $qparts['select'] .= 'IFNULL('.$this->sd.$val.$this->ed.',"")';                                                  $qparts['select'] .= 'IFNULL(CAST('.$this->sd.$val.$this->ed.' AS CHAR),"")';
                                                 if ($desc['divs'][$key]) {                                                  if ($desc['divs'][$key]) {
                                                         $qparts['select'] .= ',"'.addslashes($desc['divs'][$key]).'"';                                                          $qparts['select'] .= ',"'.addslashes($desc['divs'][$key]).'"';
                                                 }                                                  }
Line 513  class phpMyEdit
Line 513  class phpMyEdit
                                         }                                          }
                                         foreach ($desc['columns'] as $key => $val) {                                          foreach ($desc['columns'] as $key => $val) {
                                                 if ($val) {                                                  if ($val) {
                                                         $ret .= $this->sd.'PMEjoin'.$field.$this->ed.'.'.$this->sd.$val.$this->ed;                                                          $ret .= 'IFNULL(CAST('.$this->sd.'PMEjoin'.$field.$this->ed.'.'.$this->sd.$val.$this->ed.' AS CHAR),"")';
                                                         if ($desc['divs'][$key]) {                                                          if ($desc['divs'][$key]) {
                                                                 $ret .= ',"'.addslashes($desc['divs'][$key]).'"';                                                                  $ret .= ',"'.addslashes($desc['divs'][$key]).'"';
                                                         }                                                          }
Line 3377  function '.$this->js['prefix'].'filter_h
Line 3377  function '.$this->js['prefix'].'filter_h
  * vim600:fdm=marker fdl=0 fdc=0:   * vim600:fdm=marker fdl=0 fdc=0:
  * }}} */   * }}} */
   
 ?>  
   
   ?>

Legend:
Removed from v.1.195  
changed lines
  Added in v.1.196

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