mysql not recognised in PHP
+ Reply to Thread
Posts 1 to 8 of 8
  1. #1

    Double Godlike!

    xoggoth's Avatar
    Join Date
    Jul 2005
    Location
    xoggoth towers
    Posts
    12,182
    Thanks (Given)
    2
    Thanks (Received)
    391
    Likes (Given)
    127
    Likes (Received)
    1233

    Default mysql not recognised in PHP

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

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

  2. #2

    Double Godlike!

    xoggoth's Avatar
    Join Date
    Jul 2005
    Location
    xoggoth towers
    Posts
    12,182
    Thanks (Given)
    2
    Thanks (Received)
    391
    Likes (Given)
    127
    Likes (Received)
    1233

    Default 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!
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

  3. #3

    Double Godlike!


    Join Date
    Dec 2012
    Posts
    10,455
    Thanks (Given)
    767
    Thanks (Received)
    752
    Likes (Given)
    4986
    Likes (Received)
    2890

    Default

    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?

  4. #4

    Double Godlike!

    xoggoth's Avatar
    Join Date
    Jul 2005
    Location
    xoggoth towers
    Posts
    12,182
    Thanks (Given)
    2
    Thanks (Received)
    391
    Likes (Given)
    127
    Likes (Received)
    1233

    Default

    Cheers MM, just posted a minute or two before you to say sorted. Always happens with CUK!
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

  5. #5

    Double Godlike!

    xoggoth's Avatar
    Join Date
    Jul 2005
    Location
    xoggoth towers
    Posts
    12,182
    Thanks (Given)
    2
    Thanks (Received)
    391
    Likes (Given)
    127
    Likes (Received)
    1233

    Default

    No mysqli equivalent of mysql_result???? How F* ridiculous!! Why are "improvements" to programming languages always crap?
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

  6. #6

    Super poster

    woohoo's Avatar
    Join Date
    Nov 2007
    Location
    Manchester
    Posts
    2,433
    Thanks (Given)
    139
    Thanks (Received)
    169
    Likes (Given)
    753
    Likes (Received)
    582

    Default

    Quote Originally Posted by xoggoth View Post
    Why are "improvements" to programming languages always crap?
    They arent always crap.

    Anyway, told you to go down the MVC/.NET/SQL Server route. Go for the cheap and cheerful and get bitten.

  7. #7

    Double Godlike!

    xoggoth's Avatar
    Join Date
    Jul 2005
    Location
    xoggoth towers
    Posts
    12,182
    Thanks (Given)
    2
    Thanks (Received)
    391
    Likes (Given)
    127
    Likes (Received)
    1233

    Default

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

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

  8. #8

    Super poster

    woohoo's Avatar
    Join Date
    Nov 2007
    Location
    Manchester
    Posts
    2,433
    Thanks (Given)
    139
    Thanks (Received)
    169
    Likes (Given)
    753
    Likes (Received)
    582

    Default

    Quote Originally Posted by xoggoth View Post
    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.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.