Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Unable to locate parse error.

$
0
0

Ok I have a small issue. I know it's because of my lack of php knowledge and it's a small mistake but I can't seem to see it.

 

I am getting this error in Coda 2.0

 

Parse error: parse error, expecting `','' or `';'' in - on line 216
Errors parsing -

 

Which is referring to this line of code. All I did was  add echo and wrap <td> tags around it and it starting throwing the error.

echo "<td>"getGraphic($realIndex1, $aqiLevels, $aqiGraphic, $imagesDir)"</td>";

Here is this complete little script that the line above is extracted from.

<table style="margin: 0px auto;" border="0" width="80%">
     <tbody><tr><?php
  if ($useAQI) {  //  Show Air Quality Index - PLASE YOUR CODE IN PLACE OF THIS SECTION AND START HERE Removing the line above too!
?>
<?php
if ($realValue1 == "") {
  echo "";
} else {
  echo "<td style=\"text-decoration: none; text-align: center;\"><span style=\"font-size:90%; \">Quality<br/>Index<sup>6</sup>:</span><span style=\"font-size: 150%; font-weight:bold;\"><br/>" .$realValue1."</span></td>";
}
if ($realValue1 == "") {
  echo "Data Not<br />Available</span><br /><br /><img src=\"./ajax-images/AQI0.jpg\" width=\"75\" height=\"75\" alt=\"Data Not Available\" />";
} else {
 echo "<td>"getGraphic($realIndex1, $aqiLevels, $aqiGraphic, $imagesDir)"</td>";
}
?>
       <td style="text-decoration: none; text-align: center;"><span style="font-size:85%;"><?php langtrans('Density'); ?>:<br />
        <?php echo $airdensity . " kg/m<sup>3</sup>" ?></span></td>

        </tr>
<?php } // end $showAQI - PLASE YOUR CODE INPLACE OF THIS SECTION AND END HERE  ?></td>
     </tr>
    </tbody></table>

What is it that I am not seeing?

 

-Thanks


Viewing all articles
Browse latest Browse all 13200

Trending Articles