I am using php 5.5 in which mysql_connect is deprecated. So I can't use queries in phpgrid anymore. Please use mysqli_connect or PDO in the library. I have a purchased version of phpgrid and I am unable to execute queries.
1 Answers
Pasting from faq:
Q) How to use mysqli extension?
Here is the config settings.
$db_conf = array();
$db_conf["type"] = "mysqli";
$db_conf["server"] = "localhost"; // or you mysql ip
$db_conf["user"] = "root"; // username
$db_conf["password"] = "test"; // password
$db_conf["database"] = "griddemo"; // database
// include and create object
$base_path = strstr(realpath("."),"demos",true)."lib/";
include($base_path."inc/jqgrid_dist.php");
$g = new jqgrid($db_conf);
After that, all calls will use mysqli extension.
Your Answer