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

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

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

Archived

This topic is now archived and is closed to further replies.

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