homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

PHP5 with MySQL 4.0
possible to use both msyql and mysqli connections?

10+ Year Member

Msg#: 3048887 posted 6:57 pm on Aug 16, 2006 (gmt 0)

I would like to move up to PHP5, but our server currently uses MySQL 4.0, and it's not possible for us to upgrade to MYSQL 4.1 or greater at this time because we have so many live applications using MySQL 4.0 that we can't risk messing up right now..

Does anyone know if it is possible to use PHP5 with MySQL 4.0 and have both the mysql and mysqli functions available?

I understand that mysqli is designed for MySQL version 4.1 or greater and that I wouldn't have access to all of the features if using the previous version, but I wonder whether I could still use the object oriented methods of accessing the databases that is provided by mysqli. Or would I only be able to use mysql_connect if using Mysql 4.0?



WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3048887 posted 2:13 pm on Aug 22, 2006 (gmt 0)

The mysqli [php.net] extension allows you to access the functionality provided by MySQL 4.1 and above.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved