Commit 91ac608b authored by Greg's avatar Greg Committed by Ryan Wade

Problems saving page info will notify user.

parent e641b0ca
......@@ -45,10 +45,17 @@
"publish = ".$_POST['publish'].";";
$conn->query($sql);
$conn->commit();
$success = $conn->query($sql);
if($success)
{
$conn->commit();
echo $_POST['content'];
}
else
{
echo "Failed to update.";
}
}
echo $_POST['content'];
die();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment