Page 1 of 1

Error message help

Posted: Mon Dec 09, 2002 3:27 pm
by matthiasone
Does anyone know what the error
Parse error: parse error, unexpected $ in /usr/wwws/users/faog/staffpages/mediadb_dist_fns.php on line 215
means? The line referred to is the last line in the file. Here is the last few lines in the file.


Code: Select all

function dist_order_complete($form_vars)
{
  $cdate = date("Y-m-d H:i:s", strtotime("now"));
  $query = "UPDATE orders SET completed = '".$cdate."' WHERE rid = '".$form_varsї'mitem']."'";
  $result = query_db($query, "2");
}
?>

Posted: Mon Dec 09, 2002 4:59 pm
by volka
probably you've forgotten to close a { }-block somewhere.
e.g.

Code: Select all

<?php
function doSomething($count)
{
	while($count--)
	{
		echo $count, '<br/>';
}

if($cond1)
{
	doSomething(10);
}
?>
produces such an error and the indents show that the closing } of the while-block is missing.