I am trying to query this, but it somehow does not work. Is there anyone that sees what I’m doing wrong? It does seem to connect to the database but somehow it won’t update the table.
<?php
include('connect.php');
if (isset($_REQUEST['disable'])){
$number = $_REQUEST['disable'];
$sql = "UPDATE aanwezigheid SET value='0' WHERE id='"$number"'";
mysql_query($sql);
}
?>
Thanks in advance
try this