Code : Tout sélectionner
function ShowListFields($table) {
mysql_select_db($this->database, $this->dbp);
$fields = array();
while ($row = mysql_fetch_row(mysql_query("SHOW COLUMNS FROM {$table}", $this->dbp))) {
$fields[] = array(
'name' => $row[0],
'type' => $row[1],
'null' => $row[2],
'key' => $row[3],
'default' => $row[4],
'extra' => $row[5]
);
}
return $fields;
}