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
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