- How to get total number of fields in mysql table.
- Count total number of mysql table fields.
- Get total fields in mysql table.
This script displays the total number of mysql table fields.
Script
$sql = mysql_query("select * from products"); echo mysql_num_fields($sql);
Output
9
Leave A comment
Email address is optional and will not be published. Only add email address if you want a reply from blog author.
Please fill required fields marked with *