icez Posted September 1, 2008 Share Posted September 1, 2008 Parse error: parse error, unexpected $ in /home/www/d2jsp.awardspace.com/finish.php on line 16 <?php if ($uId) { if(isset($_GET['finish'])) { $query = "UPDATE items SET color='#FF0000', taken='$username' WHERE id = '{$_GET['finish']}'"; mysql_query($query) or die('Error : ' . mysql_error()); } echo "<script language=\"JavaScript\"> setTimeout(\"window.location='index.php'\",00001); </script>"; ?> function finishArticle(id, itemn) { if (confirm("Are you sure you are done whit '" + itemn + "'")) { window.location.href = 'index.php?p=finish&finish=' + id; } } Quote Link to comment https://forums.phpfreaks.com/topic/122267-solved-wtf-is-this-error/ Share on other sites More sharing options...
wildteen88 Posted September 1, 2008 Share Posted September 1, 2008 One of you if doesn't have a closing brace (notably the first one). Quote Link to comment https://forums.phpfreaks.com/topic/122267-solved-wtf-is-this-error/#findComment-631358 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.