Hi Abu,
Right now I'm trying to add a custom MySql query for a procedure record; this is query:
$mysqli->query("INSERT INTO TABLE(id) VALUES ($VAR1), ($VAR2), ($VAR3)")) {
echo "Failed insert in TABLE: (" . $mysqli->errno . ") " . $mysqli->error;
}
My Question: It's possible to assign $VAR1, $VAR2, $VAR3 to fields in grid on insert?
Regards!
Disson
3 Answers
If $VAR1,2,3 are php variables then yes, it is supported and should work.
For debugging, try printing $mysqli->error and see log in ajax response as mentioned in url:
https://phpgrid.desk.com/customer/portal/articles/926266
hello , Thanks Abu Ghufran you have nice script , in this Question you answer yes i possible , can you give us an example please
Thanks
Your Answer