Forum Moderators: coopster

Message Too Old, No Replies

php4 mysqli workaround class

         

dhardisty

8:08 pm on Mar 6, 2007 (gmt 0)

10+ Year Member



Hi folks,

I wrote a script on a server running php5, using the mysqli object for queries. Runs nicely. I copied the script to another server, which is running php4, so of course all the DB stuff is broken. Unfortunately, it will be a month or so till the server is upgraded from 4 to 5, and I need to get this script running ASAP.

Does anyone know if a workaround class has been written that will let you use the mysqli object in php4? I can write it myself if necessary, but I'm hoping someone else has already done it.

thanks,
Dave

eelixduppy

3:58 am on Mar 7, 2007 (gmt 0)



I do not think there is a work around for this. You can check the script repositories such as phpclasses, sourceforge, or hotscripts, however, I have a feeling you will come up empty. If the script is small enough rewriting it with regular mysql functions [us2.php.net] should not be hard to do. If it's a little on the longer side, you can try to rewrite it, or you can press that upgrade until it gets done before schedule.

In any case, I wish you luck :)