call to undefined function mysql_pconnect()

Today, We want to share with you call to undefined function mysql_pconnect().In this post we will show you Codeigniter error: Call to undefined function mysql_pconnect(), hear for fatal error uncaught error: call to undefined function log_message we will give you demo and example for implement.In this post, we will learn about uncaught error: call to undefined function mysql_connect in c xampphtdocs with an example.

call to undefined function mysql_pconnect()

There are the Following The simple About Updating PHP5 to PHP 7 and Getting CodeIgniter error Full Information With Example and source code.

As I will cover this Post with live Working example to develop mysql_driver php on line 91, so the call to undefined function mysql_connect please install the mysql connector for php is used for this example is following below.

Read Also:  PHP Inline Editing Table using jQuery Ajax

Codeigniter error: Call to undefined function mysql_pconnect()

setp for CodeIgniter mysqli in your project

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in

SOLUTION:

Find Below solution for errors:

  • download latest CI 3.1
  • change in mysql to mysqli “config/database.php”
  • replace database library in system folder “system/database”
  • if you are getting MX library issue then changes same code

Step 1 : go to database and change dbdriver

/application/config/database.php

//change:
$db['default']['dbdriver'] = 'mysql';   
//with:
$db['default']['dbdriver'] = 'mysqli';

Here step to, You should change/Update the Data content of the file Like name DB_driver.php in you codeigniter system directory.

Step 2 : go to DB_driver and change $dbdriver

system/database/DB_driver.php

Read Also:  call to undefined function str_slug()

simple you Go to: system/database/DB_driver.php And change the following line:

var $dbdriver = 'mysql'; 
// to :
var $dbdriver = 'mysqli';

DB_driver.php

here is a extraction of the DB_driver.php

* MySQLi Database Adapter Class - MySQLi only works with PHP 5
 *
 * Note: _DB is an extender class that the app controller
 * creates dynamically based on whether the active record
 * class is being used or not.
 *
 * @package        CodeIgniter
 * @subpackage    Drivers
 * @category    Database
 * @author        ExpressionEngine Dev Team
 * @link        http://ellislab.com/codeigniter/user-guide/database/
 */
class CI_DB_mysqli_driver extends CI_DB {
 
    var $dbdriver = 'mysqli'; 

Web Programming Tutorials Example with Demo

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about call to undefined function mysql_connect centos 7.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.