开发者

PHP 5.3.4 deprecated functions emergency

The function mysql_fetch_assoc does not work anymore after I installed PHP 5.3.4 on my wamp. I hav开发者_开发知识库e done everything that have been suggested in previous questions but nothing seems to be working.

I even tried editing the error reporting line on php.ini to:

error_reporting(E_ALL ^ E_DEPRECATED);

Unfortunately it is still not working. Please, any help would be appreciated. Thank you!


Since you've updated your PHP version, make sure that the mysql functions are enabled in your php.ini

There's a good chance that you are using a "new" version installed with the new version of PHP, and that it doesn't have the same extensions enabled. PHP has moved towards preferring the PDO calls over mysql calls.


"deprecated functions emergency"

Wow that is one massive contradiction of terms. A deprecation message is lower than a warning, it really is just saying "by the way buddy, you should probably take care of this at some point". Most deprecated errors will warn you what you need to do and if not look up the function or feature in the manual and it will explain.

Looking at the manual for mysql_fetch_assoc() you can see that it has not been deprecated, so your "not working" is inaccurate.

Post up the message you are getting or modify your php.ini settings to hide deprecated messages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜