Jump to content

[SOLVED] Mysql Syntax Error...


icez

Recommended Posts

<?php
if ($uId) { 
if(isset($_GET['take']))
{
   $query = "UPDATE items SET color=##FF7200, taken='$username' WHERE id = '{$_GET['take']}'";
   mysql_query($query) or die('Error : ' . mysql_error());
}

?>
<head>
<script language="JavaScript">
function takeArticle(id, itemn)
{
   if (confirm("Are you sure you want to take '" + itemn + "'"))
   {
      window.location.href = 'index.php?p=take&take=' + id;
   }
}
</script>
</head>

<? } ?>

Link to comment
https://forums.phpfreaks.com/topic/122242-solved-mysql-syntax-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.