Support Forum [ All Topics | New Topic ]

Thread: PHP - web service round prices download

I have tried with success to obtain a single price using PHP Webservice single price, but have had no success when using PHP web service round prices download.

I am getting a parsing error (Parse error: syntax error, unexpected ';' on line 28) the code from this line is
for ($i=0; $i {

$curLine = "";
$curLine .= $result['GetPriceSheetResult']['!Date'];
$curLine .= "," . $result['GetPriceSheetResult']['!Shape'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['LowSize'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['LowSize'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['Color'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['Clarity'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['Price'];

fwrite($file, $curLine.PHP_EOL);

Any help much appreciated
regards
Clive


>> add a comment
Clive Sheiles
11/29/2012 06:41


1 Replies:

It looks like  you copied something in the middle of you for-loop.

the loop should be like this:
for (init; condition; increment)
{
code to be executed;
}



>> add a comment
Leo Muller
12/2/2012 2:04:00 AM