mysqli substitute

Discussion in 'PHP' started by nomirock, Jul 18, 2007.

  1. #1
    I have shared hosting account and my webhost does not provide mysqli is there anyway i can run mysqli based scripts?
     
    nomirock, Jul 18, 2007 IP
  2. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Write a wrapper class / functions for the mysqli to mysql? best solution would be to rewrite to non mysqli (for the most part is is just removing the 'i' from it)
     
    exodus, Jul 18, 2007 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    You could write a class that provides mysql functionality but reference it by calling the class mysqli.

    You would need to include on all of the appropriate pages, but if you can write the class, you wouldn't need to change the script.
     
    jestep, Jul 18, 2007 IP