Skip specific field name
You should have an IF ELSE in your for loop:

for($i=0; $i&lt;$fields_num; $i++)


You are assigning $field to the string WATTAGE here:

$field = mysql_fetch_field($result);
echo "&lt;th&gt;{$field-&gt;name}&lt;/th&gt;";


before you get to the code

echo "&lt;th&gt;{$field-&gt;name}&lt;/th&gt;";
if ($field ="WATTAGE")
{
  CONTINUE;
}


WATTAGE has has already been assigned to $field before you get to if($field = "WATTAGE") code.

Put an IF/ELSE in your for loop and then put the CONTINUE; bit in the IF and the assignment in the ELSE part. That way you'll never get to the $field assignment if the fieldname is WATTAGE.