Hi
Now I have a new problem. $data in delete_client function is empty. $data is working perfect in add_client function. Why is $data empty?
function delete_client($data)
{
global $c_id;
//foreach($data["params"] as $d)
$d = $data["params"]["name"];
{
mysql_query("INSERT INTO debug (event) values ('$d')");
}
//mysql_query("DELETE FROM members_project WHERE id_members = '$c_id' AND id_project = '$d'");
//mysql_query("INSERT INTO debug (event) values ('$c_id'.':'.'$d')");
}
function add_client($data)
{
global $c_id;
foreach($data["params"] as $d)
{
mysql_query("INSERT INTO members_project (id_members, id_project) VALUES ('$c_id', '$d')");
}
}