<a href="change_status.php?status=0>Zet status bericht uit</a>
<a href="change_status.php?status=1>Zet status bericht aan</a>
change_status.php:
<?PHP
if($_GET["status"] == 0 || $_GET["status"] == 1)
{
include("dbconfig.php"); // Of hoe je de connectie dan ook in werking stelt
$sql = "UPDATE tablenaam
SET status = ".$_get["status"]." WHERE username = ".$username.";";
$result = mysql_query($sql);
}
else
{
echo "foutieve waarde";
}
?>