Hi guys,
This is my first post !
I'm perpetually encountering the following error while trying to run my php code:
Parse Error: parse error, Unexpected T_Variable in C:\Inetpub\wwwroot\glucotext.php on line 24
Here is only the php code. (in which case 'line 24' would be inappropriate)
<?php
$date = date('H:i, jS F');
$time = time()
$outputstring = $patientid."\t".$date."\t".$time."\t".$bglevel."\t".$comments."\n"
// open file for appending
@ $fp = fopen("$DOCUMENT_ROOT..\records\records.txt",'ab');
fwrite($fp, $outputstring, strlen($outputstring));
fclose($fp);
echo '<p>Record updated.</p>';
?>
The code was created simply to write the data in the fields into a text file. i just cant figure out what error means.
I can be abs sure that there isn't a typo error in the variable names.
Id greatly appreciate any help !