Getting parse error but I can't see anythting wrong in the line
<p>Here is my code:   </p>

<pre><code>if($_POST['format'] == "csv")
{
Line 174 -&gt; $objWriter = new PHPExcel_IOFactory::createWriter($objPHPExcel, 'CSV');
         $objWriter-&gt;save($FNAME);

} else {
         $objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
         $objWriter-&gt;save($FNAME);
}
</code></pre>

<p>I am getting parse error: "<code>( ! ) Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in B:\wamp\www\SuperPages\action.php on line 174</code>" but I can't see anything wrong."</p>
