Hello guys i am doing a archived page and i have added option to restore all but after that every newly deleted product doesn't show up
here's the script
//php to get update data upon click of button
<?php
if (isset($_GET['all'])) {
$allSql = "UPDATE products SET deleted = 0 WHERE deleted = 1";
$allresult = $db->query($allSql);
header('Location: products.php');
}
?>
<?php
//restore button
if($archived['deleted'] == 1){ ?>
<a href="archived.php?all" class="btn btn-success pull-left" id="restore-all-btn">Restore All</a>
<?php
}else{
echo "You have no archived products to show.";
}
?>
the products are updated but even if deleted =1 it doesn't show up on the page