| verzia 1.13, 2008/11/11 04:46:39 |
verzia 1.14, 2017/06/09 15:02:37 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/extensions/phpMyEdit-report.class.php,v 1.12 2006-01-22 21:44:23 nepto Exp $ */ |
/* $Platon: phpMyEdit/extensions/phpMyEdit-report.class.php,v 1.13 2008-11-11 04:46:39 nepto Exp $ */ |
| |
|
| /* Extension TODO: |
/* Extension TODO: |
| |
|
| Riadok 144 class phpMyEdit_report extends phpMyEdit |
|
| Riadok 144 class phpMyEdit_report extends phpMyEdit |
|
| 'from' => $this->tb, |
'from' => $this->tb, |
| 'limit' => $this->sql_limit('1')); |
'limit' => $this->sql_limit('1')); |
| $result = $this->myquery($this->get_SQL_query($query_parts), __LINE__); |
$result = $this->myquery($this->get_SQL_query($query_parts), __LINE__); |
| $all_table_cols = array_keys(@mysql_fetch_array($result, MYSQL_ASSOC)); |
$all_table_cols = array_keys($this->sql_fetch($result, FETCH_ASSOC)); |
| if (count($all_table_cols) <= 0) { |
if (count($all_table_cols) <= 0) { |
| $this->error('database fetch error'); |
$this->error('database fetch error'); |
| return false; |
return false; |
| Riadok 153 class phpMyEdit_report extends phpMyEdit |
|
| Riadok 153 class phpMyEdit_report extends phpMyEdit |
|
| if (preg_match('/^\d*$/', $field_name)) |
if (preg_match('/^\d*$/', $field_name)) |
| continue; |
continue; |
| if (($idx = array_search($field_name, $all_table_cols)) !== false) |
if (($idx = array_search($field_name, $all_table_cols)) !== false) |
| $table_cols[$field_name] = mysql_field_len($result, $idx); |
$table_cols[$field_name] = $this->sql_field_len($result, $idx); |
| } |
} |
| @mysql_free_result($result); |
$this->sql_free_result($result); |
| unset($all_table_cols); |
unset($all_table_cols); |
| |
|
| /* |
/* |