reg. mysqli

Questionsreg. mysqli
Nanban asked 9 years ago

Hi Abu

Greetings. Thank you very much for a wonderful product.

I upgraded my PHP to latest version. mysql_connect has been depreciated, so I changed the code to mysqli.

I am getting the following error…

Parse error: syntax error, unexpected end of file in C:inetpubwwwrootbetalibincadodbadodb.inc.php on line 4274

***** config.php *****

define("PHPGRID_DBTYPE","mysqli"); // or mysqli
define("PHPGRID_DBHOST","localhost");
define("PHPGRID_DBUSER","user");
define("PHPGRID_DBPASS","pwd");
define("PHPGRID_DBNAME","dbname");

// Automatically make db connection inside lib
define("PHPGRID_AUTOCONNECT",1);

// Basepath for lib
define("PHPGRID_LIBPATH",dirname(__FILE__).DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR);

***** GRID page *****

include_once("config.php");

// set up DB
//mysql_connect(PHPGRID_DBHOST, PHPGRID_DBUSER, PHPGRID_DBPASS);
//mysql_select_db(PHPGRID_DBNAME);

$db_conf = array();
$db_conf["type"] = PHPGRID_DBTYPE;
$db_conf["server"] = PHPGRID_DBHOST; // or you mysql ip
$db_conf["user"] = PHPGRID_DBUSER; // username
$db_conf["password"] = PHPGRID_DBPASS; // password
$db_conf["database"] = PHPGRID_DBNAME; // database

// include and create object
include("lib/inc/jqgrid_dist.php");

$g = new jqgrid($db_conf);

*****************************

Your help in this matter is highly appreciated.

Thanks

2 Answers
Abu Ghufran answered 9 years ago

Looks like this file is truncated and corrupted (adodb.inc.php). Try extracting/uploading again from the package.

Nanban answered 9 years ago

Thanks Abu,

Thanks for your prompt reply. This has fixed the issue.

Cheers

Your Answer

11 + 7 =

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?