Mailinglisten-Archive |
Hallo Tobias,
hab mir mal sowas gebastelt. Die Funktion nutzt allerdings die PHPLib,
d.h. du musst alles mit "$this->" noch übersetzen, wenn du sie nicht
nutzt.
function enum_vals($FieldName, $Table)
$this->query("SHOW COLUMNS FROM $Table LIKE '$FieldName'");
if ($this->next_record()) {
$vals = $this->Record["Type"];
$vals = str_replace('enum', '', $vals);
$vals = ereg_replace("[()']", '', $vals);
return explode(',',$vals);
}
else
return false;
}
Schalte bei weiteren Mails besser das HTML ab, sonst fällst du in Kürze
dem Zorn der Liste zum Opfer...
Viele Grüße
Christiane
php::bar PHP Wiki - Listenarchive