version 1.46, 2003/01/27 20:50:01 |
version 1.47, 2003/01/28 04:07:44 |
|
|
* http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.45 2003/01/15 22:19:08 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.46 2003/01/27 20:50:01 nepto Exp $ */ |
|
|
/* phpMyEdit intro {{{ */ |
/* phpMyEdit intro {{{ */ |
/* |
/* |
Line 2380 function phpMyEdit_form_control(theForm) |
|
Line 2380 function phpMyEdit_form_control(theForm) |
|
$res_old = $this->myquery($query_oldrec, __LINE__); |
$res_old = $this->myquery($query_oldrec, __LINE__); |
$oldvalues = @mysql_fetch_array($res_old, MYSQL_ASSOC); |
$oldvalues = @mysql_fetch_array($res_old, MYSQL_ASSOC); |
for ($k = 0; $k < $this->num_fds; $k++) { |
for ($k = 0; $k < $this->num_fds; $k++) { |
if ($this->processed($k) && !$this->readonly($k)) { |
if (is_array(@$newvalues[$this->fds[$k]])) { |
if ($oldvalues[$this->fds[$k]] == $newvalues[$this->fds[$k]]) { |
$newvalues[$this->fds[$k]] = join(',', $newvalues[$this->fds[$k]]); |
// Removing the same values |
} |
unset($oldvalues[$this->fds[$k]]); |
if (! $this->processed($k) || $this->readonly($k) |
unset($newvalues[$this->fds[$k]]); |
|| $oldvalues[$this->fds[$k]] == $newvalues[$this->fds[$k]]) { |
} |
// Removing the same values |
|
unset($oldvalues[$this->fds[$k]]); |
|
unset($newvalues[$this->fds[$k]]); |
} |
} |
} |
} |
} |
} |