• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

mysql not recognised in PHP

xoggoth

More fingers than teeth
Thanks received
1,183
My small business website is down. HTML pages show but PHP don't and error log shows "Call to undefined function mysql_connect()".

It probably won't take very long to update to mysqli but I ain't got the time at mo. and I don't want site down for several days.

What I can't figure is why this problem has suddenly occurred when PHP is still shown as version 5.6.3. Any ideas re. quick fixes? Ta.
 
Sorted

Sorted

Support told me that, despite what it said on site details, they had updated to PHP 7 and have put it back to 5.6.

Prepare for a string of boring technical questions from me on mysqli!
 
It looks like some kind of issue wth connecting to the version of MySQL you are running.

Could it be something as simple as a driver upgrade required for the connection?
 
Cheers MM, just posted a minute or two before you to say sorted. Always happens with CUK!
 
No mysqli equivalent of mysql_result???? How F* ridiculous!! Why are "improvements" to programming languages always crap?
 
Anyway, told you to go down the MVC/.NET/SQL Server route

Dunno wh, sounds like major changes. In programming I am LAZY, as in everything else. The website itself is pretty efficient with all complicated stuff in a few includes but got lots of tools, invoicing and accounting software too.
 
Dunno wh, sounds like major changes. In programming I am LAZY, as in everything else. The website itself is pretty efficient with all complicated stuff in a few includes but got lots of tools, invoicing and accounting software too.

Fair and reasonable comment, I take back my grumpy and unreasonable comment.
 

Advertisers

Back
Top