mysql_list_fields is the function . i googled for it and get answer -
debugger
Sep 28 '16 05:27
$result_set=mysqli_query("SHOW COLUMNS FROM `tablename_here`")
while($field_list=mysqli_fetch_assoc($result)){
$fields[]=$field_list;
}
print_r($fields);