Since mysql_connect() extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0., servers above PHP 5.5.0 get depricated waning for errors. But some old PHP versions below 5.0 does don’t understand altenative mysqli_connect(). Read more on this in below link
So I have made two versions of the script to suit old and new servers. One uses mysql_pconeect() and other uses mysqli_connect();
So if your server is above PHP 5.0 use “MySQL Smart Reports – MySQLi” version and if below use other.