Lo all,
Ive been getting the error message
Parse error: parse error, unexpected T_ENCAPSED_AND_ WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/moneill/public_html/input.html on line 248
so ive checked me code over and over again but cant find whats wrong. So getting a annoyed I commented it to move on to next error but the same error message comes up. And when i remove the code completely the error message remains on line 248 but obviously on diff code.
The code is of a program of about 850 lines with about 20 functions in it. The hand in date is very soon so cant afford to change it in a major way.
Has any1 any ideas on this?
Ive been getting the error message
Parse error: parse error, unexpected T_ENCAPSED_AND_ WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/moneill/public_html/input.html on line 248
so ive checked me code over and over again but cant find whats wrong. So getting a annoyed I commented it to move on to next error but the same error message comes up. And when i remove the code completely the error message remains on line 248 but obviously on diff code.
Code:
/*
// A Function to total compensation.
function Compensate()
{
global $taskValue, $actualValues, $OriginalPrice, $projectTotal, $Hours, $Price, $Wage;
$thevalue=0;
for($i=1; $i<=count($Hours); $i++) //This is compensation for actual work
{
$actualValues[$i]= $Hours[$i] * $Wage[$i];
$theValue += $actualValues;
}
for($j=1; $j<=count($Price); $j++) //This is compensation for subcontractors / engineers
{
$theValue += $Price[$j];
}
$taskValue = $OriginalPrice-$theValue;
$projectValues+= $taskValue;
}
*/
Has any1 any ideas on this?
Comment