Jump to content

Mysqli_Connect


mauer

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...