Total number of fields in a table : Table MetaData : MySQL Database PHP Source Code


PHP Source Code » MySQL Database » Table MetaData »

 

Total number of fields in a table



<?php

   mysql_connect("mysql153.secureserver.net","navioo","password");
   mysql_select_db("navioo");// databasename

   $fields = mysql_list_fields("navioo","Employee");// databasename and tablename
   echo "Total number of fields returned: ".mysql_num_fields($fields).".<br />";

?>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo MySQL Database
» Table MetaData