Uncaught Error: Call to undefined function mysql_query()

QuestionsUncaught Error: Call to undefined function mysql_query()
santosh asked 3 years ago

After upgrading to PHP 7.1, I am seeing this error.

PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() in /var/www/html/grid/lib/inc/jqgrid_dist.php:99nStack trace:n#0 /var/www/html/home.php(12): jqgrid->jqgrid()n#1 {main}n thrown in /var/www/html/grid/lib/inc/jqgrid_dist.php on line 99

Can you please help

2 Answers
santosh answered 3 years ago

Version 2 seems to work fine. I have license for previous version. I have requested updated files from you. thanks

Joann answered 2 years ago

FYI in case anyone else stumbles across this, when not using a db you still need to set one constant when using PHP7:

define("PHPGRID_DBTYPE","mysqli");

This prevents phpgrid from presenting this error in the case where you have NO db configured at all.

Your Answer

11 + 15 =

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 / 5. Vote count:

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

Let us improve this post!