Tuesday, 30 January 2018

debian - "Call to undefined function mysql_connect()" after upgrade to php-7


Warning This extension was deprecated in PHP 5.5.0, and it was removed
in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be
used. See also MySQL: choosing an API guide. Alternatives to this function include:




mysqli_connect()

PDO::__construct()



use MySQLi or PDO



$con = mysqli_connect('localhost', 'username', 'password', 'database');


Read this

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...