Jump to content

[SOLVED] WTF is this error ??


icez

Recommended Posts

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;
   }
}

Link to comment
https://forums.phpfreaks.com/topic/122267-solved-wtf-is-this-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.