公告
财富商城
积分规则
提问
发文
2018-12-31 05:37发布
余生无你
I'd like to get all of a mysql table's col names into an array in php?
Is there a query for this?
IN WORDPRESS:
global $wpdb; $table_name=$wpdb->prefix.'posts'; foreach ( $wpdb->get_col( "DESC " . $table_name, 0 ) as $column_name ) { var_dump( $column_name ); }
最多设置5个标签!
IN WORDPRESS: