Dear Abu, you can have two grids from two different databases in the same php program.
1 Answers
Yes, That’s doable.
You just need to change the database configuration array passed to the constructor of jqgrid(…);
e.g.
$g1 = new jqgrid($db1);
$g2 = new jqgrid($db2);
Where $db1 and $db2 is the configuration array like:
$db1 = array(); $db1["type"] = "mysqli"; $db1["server"] = "127.0.0.1"; $db1["user"] = "user"; // username $db1["password"] = "pass"; // password $db1["database"] = "griddemo1"; // database
Your Answer