Jump to content

Fatal error: Call to undefined function mysqli_connect()


Recommended Posts

Hi,

 

Can someone help me? I have tried to upload my index.php file into my web hosting, but it turns out to give me this error.

 

 

Fatal error: Call to undefined function mysqli_connect() in D:\inetpub\vhosts\champion.com\httpdocs\index.php on line 40

 

I have checked my database connection, nothing wrong with it, I have entered the correct username, localhost, password and database name.

 

So what could actually happen? Please kindly advice. Thank you

 

 

Regards,

Wilson

Link to comment
Share on other sites

Hi thorpe,

 

I am using php 5, I'm not too sure about my web host version though. mysqli_connect is applicable in PHP 5 right? Darn, what am I going to do now? So how should I programme then? Is there any other coding beside 'mysqli_connect' that I can use, which might be suitable for my current web host?

 

Thanks

Link to comment
Share on other sites

Hi Thorpe,

 

I have tried using 'mysql_connect', it seems to work, but I am prompted an error for this, do you know what is it about?

 

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\inetpub\vhosts\championtutor.com\httpdocs\report.php on line 31

Error querying database

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.