Fatal error: Call to undefined function mysql_connect() - PHP
|I have uploaded the php files on new hosting and when I enter URL address into browser, I get this error: |
Fatal error: Uncaught Error: Call to undefined function mysql_connect()
The php files are working well on another server, so the code should be correct. Can you please give me suggestion what is wrong and how I have to fix it ?
There is probably a newer version of PHP on the server, which doesn't support mysql_connect() function. To open a connection to a MySQL Server instead of mysql_connect(), try to use mysqli_connect().
The mysqli_connect() function should look like:
mysqli_connect("localhost", "username", "password", "database");
|How to calculate inverse currency exchange rate ?|
|How to add side by side rows in excel pivot table ?|
|Remove or hide bottom navigation bar with buttons on Android|
|How to change QWERTZ keyboard to QWERTY in Windows 10 ?|
|Invitation emails disappear after meeting is accepted in Outlook|
|How to see who is invited to a meeting - attendees in Outlook|
|How to calculate how many Man Days are 3 Man Hours ?|