Error message help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
matthiasone
Forum Contributor
Posts: 117
Joined: Mon Jul 22, 2002 12:14 pm
Location: Texas, USA
Contact:

Error message help

Post 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");
}
?>
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
Post Reply