delete_client($data)

Questionsdelete_client($data)
Lars asked 6 years ago

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')");
}
}

1 Answers
Lars answered 6 years ago

Solved. Wrong syntax in code.

BR Lars

Your Answer

18 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!