For some reason, i am having difficulty getting this script to function properly
The code is below. The call is
<a href="status.php?s=d&id=<? echo $id; ?>&status=active"
Processing
<?
require "connect.php";
if ($s=='d') {
$sql = "UPDATE `contact_table` (`status``) VALUES ('$status') WHERE `id` = '$id';";
mysql_query($sql,$db);
if (@mysql_query($sql,$db)) {
echo "Status Changed to $status<br><a href='client.php?id=$id'>Back to Clients</a>";} else { echo"Mysql Error";}
} else {} ?>
While all the definied variables pass correctly, the script returns mysql error.
Any help would be greatly appreciated.