| 291 | | $query = mysql_query('SHOW COLUMNS FROM '.$this->escape_table($table), $this->link); |
| 292 | | |
| 293 | | $table = array(); |
| 294 | | while ($row = mysql_fetch_object($query)) |
| 295 | | { |
| 296 | | $table[] = $row; |
| 297 | | } |
| 298 | | |
| 299 | | return $table; |
| | 291 | $columns = array(); |
| | 292 | |
| | 293 | if ($query = mysql_query('SHOW COLUMNS FROM '.$this->escape_table($table), $this->link)) |
| | 294 | { |
| | 295 | if (mysql_num_rows($query) > 0) |
| | 296 | { |
| | 297 | while ($row = mysql_fetch_object($query)) |
| | 298 | { |
| | 299 | $columns[] = $row; |
| | 300 | } |
| | 301 | } |
| | 302 | } |
| | 303 | |
| | 304 | return $columns; |