Parse error: syntax error, unexpected '"', expecting ',' or ')' in /home/givecoin/public_html/script/common.php on line 475
$q = $sql->prepare("UPDATE `".$dbtable_prefix."Settings` SET `value` = ? WHERE `name` = 'version'");
line475
Parse error: syntax error, unexpected '"', expecting ',' or ')' in /home/givecoin/public_html/script/common.php on line 475
$q = $sql->prepare("UPDATE `".$dbtable_prefix."Settings` SET `value` = ? WHERE `name` = 'version'");
line475
Try by adding new line after each string part. Eg:
$q = $sql->prepare(
"UPDATE `" .
$dbtable_prefix .
"Settings` SET `value` = ? WHERE `name` = 'version'"
);
This won't fix the problem, but it will provide you a better line information: the code you posted does not have any parsing error, so I think your problem is before the line 475.
When PHP, or Byson/FLEX (the parser/lexer behind php), tells you that there was an unexpected character, then it tells you what it expect: the line simply correspond to where it could not find the expected characters.
If it awaits a ',' or a ')', this means you probably have an error before the line 475, for example:
474. $a = ($b
//------^ missing ')'
475. $q = $sql->prepare("")
This would (I did not test) fail