What is mysqli?
Posted by: ckosloff (---.hsd1.fl.comcast.net)
Date: May 15, 2007 01:19AM

After installing add-on and switching to PHP4 my site gets disconnected from database.
No way to get it connected, rebooted comp to no avail.
When switching back to PHP5 I see in the command prompt something like "starting mysqli", after that the site reconnects
This never happened in the previous version of WAMP 1.7.0
Can somebody please explain what is happening now?
Thanks.



ckosloff

Options: ReplyQuote
Re: What is mysqli?
Posted by: CyberSpatium (71.237.217.---)
Date: May 15, 2007 05:19AM

mysqli is only supported in php5. for php4 you need to use mysql


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

I have put one of my one word domains up for action at ebay - Moistest.com
Click here to see the auction

Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Web Development for Newbie's Blog

Options: ReplyQuote
Re: What is mysqli?
Posted by: ckosloff (---.hsd1.fl.comcast.net)
Date: May 16, 2007 01:25AM

Hey Cyberspatium,

Thanks, I finally got an answer.
However, please note that this clarification doesn't solve my problem: why doesn't the latest version work when switching to PHP4?
The previous one worked fine, so what changed?
There is definitely a bug in this newer version, please notify the author.



ckosloff

Options: ReplyQuote
Re: What is mysqli?
Posted by: CyberSpatium (71.237.217.---)
Date: May 16, 2007 02:55AM

write your scripts to connect to your mysql server using the php's mysql functions instead of their mysqli functions and your code will work with php4 and php5

[www.php.net]
[www.php.net]

CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

I have put one of my one word domains up for action at ebay - Moistest.com
Click here to see the auction

Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Web Development for Newbie's Blog

Options: ReplyQuote
Re: What is mysqli?
Posted by: ckosloff (---.hsd1.fl.comcast.net)
Date: May 17, 2007 12:50AM

Thanks for staying with me in this thread, Cyberspatium.
Please be aware that I am a newbie and still don't understand php in-depth.
Unable to write the scripts you mention.
Shouldn't this be done automatically by wamp, once you install the add-on which creates the command?
I didn't have any problem using the previous version, but now this feature simply doesn't work.
Somebody should alert the developers of this bug in the latest version.
Please keep me posted.



ckosloff

Options: ReplyQuote
Re: What is mysqli?
Posted by: CyberSpatium (71.237.217.---)
Date: May 17, 2007 01:39AM

there is no bug, you just don't understand. it is not wamp's job to create your scripts for you, that is yours.


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

I have put one of my one word domains up for action at ebay - Moistest.com
Click here to see the auction

Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Web Development for Newbie's Blog

Options: ReplyQuote
Re: What is mysqli?
Posted by: ckosloff (---.hsd1.fl.comcast.net)
Date: May 19, 2007 04:46AM

Cyberspatium,
Please understand, I am not trying to create any script.
Just attempting to switch to PHP4 using the command that the PHP4 add-on creates.
There is in fact a bug, because this command no longer works in the latest version.
As I said previously, I get disconnected from the database.
Please help, as there are many users using wamp for testing purposes, and they are not developers.
Why is it so difficult to submit a bug?
Thanks.



ckosloff

Options: ReplyQuote
Re: What is mysqli?
Posted by: Stretch (---.hfc.comcastbusiness.net)
Date: June 03, 2007 03:23AM

I ran into a similar problem here. When installing the PHP4 Add-on, it does not include the php_mysql.dll in the extensions directory. Therefore, even if you ARE using mysql instead of mysqli, it still won't connect to MySQL databases.

I copied php_mysql.dll from the /php/ext directory to the /php4/extensions directory, then chose Add extension from the WAMP control panel, restarted all services, and all is well.

The "bug" is not including the php_mysql.dll in the extensions directory.

Options: ReplyQuote


Sorry, only registered users may post in this forum.