So having a decent understanding of programming but new to PHP I'm stuck on this somewhat simple problem. I have column titles being listed from my database as follows:
//This section gathers the field names
// and puts them in the first row of the table
$sql = "SELECT * FROM `vendors` ORDER BY `Company/Name` ASC";
$query = mysql_query($sql);
$fields_nums = mysql_num_fields($query); // Code, Account Info, Ph#, User, PW, Web, Active
$fieldname = array();
for($i=0; $i<$fields_nums; $i++)
{
$fields = mysql_fetch_field($query);
$fieldname[$i] = $fields->name;
echo "<td id='headers'>".$fieldname[$i]."</td>";
}
Now how do I hide the ID column or column[x] if you will. Cause on other pages I intended to have extra fields as part of the table but I won't want them displayed on the page. Thanks in advance for any help you can offer on this.