Message: call to undefined function mysql_connect ()?

Event Type: Error

Message: call to undefined function mysql_connect ()

/system/database/drivers/mysql/mysql_driver.php

Line number: 136

LINES 136-140:
: mysql_connect($this->hostname, $this->username, $this->password, TRUE, $plugin);

// ----------------------------------------------------------------

// Select the DB... assuming a database name is specified in the config file
April 3rd 20 at 18:56
1 answer
April 3rd 20 at 18:58
Solution
How's the moon doing?

Function mysql_connect is already 5 years in the language. And warn about it started 10 years ago.

in /system/database/drivers/ need to search any other driver
mysqli? - margaret29 commented on April 3rd 20 at 19:01
pdo - osbaldo_Turcot commented on April 3rd 20 at 19:04
@osbaldo_Turcot, pdo? - margaret29 commented on April 3rd 20 at 19:07
Then the question is which driver to get? mysqli? mssql? - margaret29 commented on April 3rd 20 at 19:10

Find more questions by tags PHP