获得数据表的字段名
程序员文章站
2022-05-25 10:45:22
...
php.net 无 ?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_fiel
php.net