PHP$link =
MysqL_connect('localhost','username','password');
$fields =
MysqL_list_fields("database","table",$link);
$columns =
MysqL_num_fields($fields);
$field = false;
for ($i = 0; $i < $columns; $i++) {
$field .= "'".
MysqL_field_name($fields,$i) . "',";
}
print $field;