I have some existing PHP code that is now throwing a fatal error since we migrated to PHP 7.0. Using this Stackoverflow Question I've altered this line:
$link = mysql_connect($host.':'.$port, $user, $pass) or die("Can not connect." . mysql_error());
to this:
$link = new mysqli($host.':'.$port, $user, $pass);
I am now throwing this error which I guess is some progress. The syntax seems fine? What am I missing?
Warning: mysqli::__construct(): (HY000/2002): Connection timed out