I am using free version of Grid4PHP, while I connect to MySQL db, getting below error
ADONewConnection: Unable to load database driver ”
Below are the configuration in the file
// include db config
include_once(“./config.php”);
// include and create object
include(PHPGRID_LIBPATH.”inc/jqgrid_dist.php”);
// Database config file to be passed in phpgrid constructor
$db_conf = array(
“mysqli” => PHPGRID_DBTYPE,
“localhost” => PHPGRID_DBHOST,
“root” => PHPGRID_DBUSER,
“123” => PHPGRID_DBPASS,
“test” => PHPGRID_DBNAME
);
$g = new jqgrid($db_conf);
Please help be
Regards
\
Biju
What you wrote is incorrect PHP syntax.
It should be like:
// Database config file to be passed in phpgrid constructor
$db_conf = array(
“type” => “mysqli”,
“server” => “localhost”,
“user” => “root”,
“password” => “123”,
“database” => “test”
);
$g = new jqgrid($db_conf);