Question:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'?
Bailey Schafer
2012-05-28 23:35:54 UTC
I'm getting this error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

When I run my php script. The error is on line 58 so I put lines 58 and 59 below. Could anyone help me figure out my error?

My Code:

}
$updatecreature="update creatures set hpoints='$newcreaturehp' where name='$creature'";
mysql_query($updatecreature) or die("Could not update creature");
}
Four answers:
2012-05-29 08:24:14 UTC
See line 57 you probably miss something. Please copy and paste your code in line 57 here(Yahoo Answer) so we can help you.
just "JR"
2012-05-29 00:18:03 UTC
The error is ABOVE line 58...
2016-06-30 02:47:14 UTC
You are attempting to echo() a whole piece of code: unhealthy coding procedure. Nevertheless, seeing that you aren't using double charges at any place, that you can remedy this hindrance readily: echo ("
Loading...