add a new record in a different table by grid event on_insert

Questionsadd a new record in a different table by grid event on_insert
Raina asked 11 years ago

I need to add a new record in table'a' when I insert a record in table 'b'(the grid use this table).I used both true and false for third parameter,neither works.

$e["on_insert"] = array("add", null, true);
$grid-set_events($e);

function add(&$data)
{

mysql_query("insert into index ( proj_id_i) values('{$data["params"]["proj_id"]}')");
}

what is wrong?

1 Answers
Abu Ghufran answered 11 years ago

Hello,

This feature is part of paid package. If you are using it send me code for review at [email protected]
If you are using free, you can buy from http://phpgrid.org/download

Your Answer

2 + 19 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?