here is the issue
i need to make the viewer to my web application when he press on a button to make some users in my database in active or hidden to him but without deleting them from my database
i added an attribute to a table in my database which has the status of the user
0>>> inactive
1>>> active
but there is something wrong it doesn''t change the status in the database
here is the code
Code:
mysql_connect("localhost","root","");
mysql_select_db("dbname");
if($_REQUEST['select'] == "Activate")
{
mysql_query("update table1 set status=1 where P_id in $Patient_id");
}
if($_REQUEST['select'] == "Deactivate")
{
mysql_query("update table1 set status=0 where P_id in $Patient_id");
}
$query = "SELECT * FROM `table1`";
$dd=mysql_query($query);
?>