greens85
02-24-2010, 01:45 PM
Hi all,
I have a very basic if statement, but I am receiving the error:
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /path/to/file/jobenquire.php on line 112
However, I can't see anything wrong with the statement. There doesn't appear to be an extra } or anything. Can anyone tell me what I am overlooking?
<?php
if (!empty($row['hours'])) {
echo $row['hours'];
} else { // This is line 112
echo "Not Supplied"
}
?>
Many thanks,
Greens85
I have a very basic if statement, but I am receiving the error:
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /path/to/file/jobenquire.php on line 112
However, I can't see anything wrong with the statement. There doesn't appear to be an extra } or anything. Can anyone tell me what I am overlooking?
<?php
if (!empty($row['hours'])) {
echo $row['hours'];
} else { // This is line 112
echo "Not Supplied"
}
?>
Many thanks,
Greens85