views output file alterations I am using d7 and views. 

I've created a view tpl file specific to my view using the the file name of: views-view-fields--cameras.tpl.php

&lt;?php 

foreach ($fields as $id =&gt; $field): ?&gt;
&lt;?php 
$output = '';
$output .=  $field-&gt;label_html;
$output .= '&lt;table width=100% border=1&gt;';
if($field-&gt;label_html == 'camera_brand_star:')
{
$output .= $field-&gt;wrapper_prefix;
$output .= '&lt;tr&gt;&lt;td&gt;hello&lt;/td&gt;&lt;/tr&gt;';
$output .= $field-&gt;wrapper_suffix;
}
else if($field-&gt;label_html == 'camera_price_star')
{
$output .= $field-&gt;wrapper_prefix;
$output .= '&lt;tr&gt;&lt;td&gt;'.$field-&gt;content.'&lt;/td&gt;&lt;/tr&gt;';
$output .= $field-&gt;wrapper_suffix;
}
else if($field-&gt;label_html == 'brand:')
{
$output .= $field-&gt;wrapper_prefix;
$output .= '&lt;tr&gt;&lt;td&gt;'.$field-&gt;content.'&lt;/td&gt;&lt;/tr&gt;';
$output .= $field-&gt;wrapper_suffix;
}

else
{
$output .= $field-&gt;wrapper_prefix;
//$output .= '&lt;tr&gt;&lt;td&gt;'.$field-&gt;content.'&lt;/td&gt;&lt;/tr&gt;';
$output .= $field-&gt;wrapper_suffix;
}
$output .= '&lt;/table&gt;';
echo $output;
//echo $field-&gt;label_html;
?&gt;
&lt;?php endforeach; ?&gt;


The if conditions are not working at all as its not printing any content. Only it prints the output of     $output .=  $field-&gt;label_html;   What am I doing wrong?
Please provide the markup that's currently produced by this code. The PHP logic looks fine but it's not cleat if $field-&gt;label_html has a value that will trigger and of the if statements. As a bare minimum you should be getting:

&lt;table width=100% border=1&gt;
&lt;/table&gt;