Jump to content

Recommended Posts

Posted

Hi

 

I´m trying to connect a mysql database with PHP using:

 

$con = mysqli_connect('localhost','some_user,'some_user_password','some_table_name');

 

and getting the following error:

Fatal error: Call to undefined function mysqli_connect() in /home/...../public_html/..../some.php on line 501

 

The problem is that was OK a week ago.

What am I doing wrong?

Or, did something changed on PHP, Mysql?

 

TIA

Marcus

Posted

The mysqli extension broke on Johnny when we rebuilt apache earlier this week (it gave us trouble, mysqli, ASP.NET support, and a few other things are hosed). You'll need to use the old mysql for the time being (or move to Tommy where this works properly).

 

The only way to make that work for now without rewriting or moving is to make a wrapper (basically a bunch of functions named mysqli_****() that just call the mysql_***() equivalent) and include that in your software. Ugly but it works.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...