I’m getting the return “Error” I know it’s because I didnt do it correctly. I just am not sure which part is incorrect.
[php]
$user=$_SESSION[‘username’];
$stat = $_POST[‘stat’];
$category = $_POST[‘category’];
$file = $_FILES[“file”][“name”];
$sql=“UPDATE reguserstest SET ‘$category’=’$stat’ WHERE username=’$user’”;
if (mysql_query($sql,$con))
{
echo "SUCCESS!";
}
else
{
echo "<h1>Error</h1>";
}
[/php]