pmusu
03-08-2008, 11:11 AM
Hi,
I am new to PHP.
I am getting the following error but I cannot understand what is wrong with the syntax.
Here is extract of code.
$priceRange = ($priceRangeMax - $priceRangeMin) / 3; // find price ranges for three tables
$priceRangeMin = sprintf("%01.2f", 0.00);
$priceRangeMax = $priceRangeMin; // needed for initial setup
The error I am getting is in this line
$priceRangeMin = sprintf("%01.2f", 0.00);
The error is:
parse error: (unexpected token 'id') -- (id . f)
Thanks in advance
I am new to PHP.
I am getting the following error but I cannot understand what is wrong with the syntax.
Here is extract of code.
$priceRange = ($priceRangeMax - $priceRangeMin) / 3; // find price ranges for three tables
$priceRangeMin = sprintf("%01.2f", 0.00);
$priceRangeMax = $priceRangeMin; // needed for initial setup
The error I am getting is in this line
$priceRangeMin = sprintf("%01.2f", 0.00);
The error is:
parse error: (unexpected token 'id') -- (id . f)
Thanks in advance