• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Call to undefined function mysql_connect() XAMPP 7.2, PHP 7

Adi049

New Member
Joined
Aug 7, 2018
Messages
12
Reaction score
0
Call to undefined function mysql_connect()
sql.php on line: 30

Script was terminated because something unexpected happened. You can report this, if you think it's a bug.

I need help how to fix this
 
I install older version and now it works but i have new problem :
Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\class\iobox.php on line 105

public $attrs;
public function __construct($name){
foreach( array_keys($_POST) as $key){
if (eregi('^'.$name.'__',$key)){
$p = explode('__', $key);
$this->attrs[$p[1]] = trim($_POST[$key]);
}
}


 
Using anything built in the 5.x era will break numerous things when there are deprecated functions being used.
Downgrading your PHP version wouldn't be much of a problem, but there are other potential security risks you're opening up at that moment.

PHP Connect to MySQL (check this guide for database related stuff)
PHP: eregi - Manual (deprecated since 5.3, removed in 7)
 
Back
Top