mysql_list_fields()

Its deprecated . It lists MySQL table fields

Example

<?php
mysql_connect(“localhost”, “root”, “phpcode”) or die( mysql_error());
echo “<pre>”;
$fields = mysql_list_fields(“database_name”,”users”);
for ($i=0; $i < mysql_num_fields($fields); ++$i)
echo  mysql_field_name ($fields, $i), ‘<br />’;
?>
>

Output

id
name