mysql_connect

Questionsmysql_connect
Ram asked 11 years ago

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
Abu Ghufran answered 11 years ago

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

9 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?