How to Make Active or Inactive in PHP With Mysql Database

How to Make Active or Inactive in PHP With Mysql Database

We will Explain How to Make Active or Inactive in PHP With Database. <?php mysql_connect('localhost','root',''); mysql_select_db('database'); if(!empty($_GET['status_id'])&&isset($_GET['status_id'])) { $status_id = $_GET['status_id']; $status = $_GET['status']; $query = "update menus set status = '$status' where id = '$status_id'"; mysql_query($query); header("location:menus.php"); } // Active / De-Active Record ?> <html> <head> <title>Active/Deactive</title> </head> <body> <form method="POST"> <table border="1"> <?php […]
Read Full Article