Remote database connection

I have an active database on a server(S1). I am trying to get a website on a different server(S2) to access the data.
I have added the IP for (S2) to the  Remote Mysql Database Access list.

I have set the host to what I have been told is the correct IP for (S1).
But I get the following error on the site I am trying to retrieve the info on:

 Fatal error: Call to undefined function mysqli_connect() in /web/news/dbFunctions.php on line 21

line 21 is "return $conn = mysqli_connect ($hostname, $port, $username, $password, $dbname);"

NOT SURE what I have wrong, here is my connection info.

function db_connect(){

$hostname= '70.40.205.226';
$port= '3306';
$username='classyac_pedro';
$password='*********';
$dbname='classyac_flatearth12';

return $conn = mysqli_connect ($hostname, $port, $username, $password, $dbname);
      }

PLEASE HELP!
rexx009Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Your error message says that mysqli_connect() isn't available on that server (s2).  Check phpinfo() to see if it is listed.
rexx009Author Commented:
Forgive me for being naive on most of this. I ran this "hello.php" file with Check phpinfo() in it  and I see no "mysqli" any where.

http://www.tsiplastics.com/news/hello.php.
Dave BaldwinFixer of ProblemsCommented:
That means it is Not enabled on your server.  After looking at your page, your version of PHP (5.0.4) is too old to support 'mysqli'.  PHP 5.07 or newer is required.  http://php.net/manual/en/mysqli.requirements.php

Two possibilities:  Upgrade PHP on your server to whatever version is available for you server.  Or use the 'mysql' extension instead of 'mysqli'.  'mysql' is listed in your page.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rexx009Author Commented:
thank you
I have asked them to upgrade the version.
Dave BaldwinFixer of ProblemsCommented:
You're welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.