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

Diff for phpMyEdit/phpMyEdit.class.php between version 1.141 and 1.142

version 1.141, 2004/04/20 18:12:41 version 1.142, 2004/04/22 16:12:27
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.140 2004/04/20 17:47:28 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.141 2004/04/20 18:12:41 nepto 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 2384  function phpMyEdit_filter_handler(theFor
Line 2384  function phpMyEdit_filter_handler(theFor
                 }                  }
                 $where_part = " WHERE (".$this->key.'='.$this->key_delim.$this->rec.$this->key_delim.')';                  $where_part = " WHERE (".$this->key.'='.$this->key_delim.$this->rec.$this->key_delim.')';
                 $query_real   .= $where_part;                  $query_real   .= $where_part;
                   $query_newrec  = $query_oldrec.' FROM ' . $this->tb;
                 $query_oldrec .= ' FROM ' . $this->tb . $where_part;                  $query_oldrec .= ' FROM ' . $this->tb . $where_part;
                 // Additional query (must go before real query)                  // Additional query (must go before real query)
                 $res     = $this->myquery($query_oldrec, __LINE__);                  $res     = $this->myquery($query_oldrec, __LINE__);
Line 2411  function phpMyEdit_filter_handler(theFor
Line 2412  function phpMyEdit_filter_handler(theFor
                         return false;                          return false;
                 }                  }
                 // Another additional query (must go after real query)                  // Another additional query (must go after real query)
                 $res     = $this->myquery($query_oldrec, __LINE__);                  if (in_array($this->key, $changed)) {
                           $this->rec = $newvals[$this->key]; // key has changed
                   }
                   $query_newrec .= ' WHERE ('.$this->key.'='.$this->key_delim.$this->rec.$this->key_delim.')';
                   $res     = $this->myquery($query_newrec, __LINE__);
                 $newvals = @mysql_fetch_array($res, MYSQL_ASSOC);                  $newvals = @mysql_fetch_array($res, MYSQL_ASSOC);
                 @mysql_free_result($res);                  @mysql_free_result($res);
                 // Creating array of changed keys ($changed)                  // Creating array of changed keys ($changed)

Legend:
Removed from v.1.141  
changed lines
  Added in v.1.142

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