调用未定义的函数mysql_connect()函数 [英] Call to undefined function mysql_connect()

查看:656
本文介绍了调用未定义的函数mysql_connect()函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在谷歌上搜索我却仿佛MySQL的函数没有在PHP5的基础上下载包括在内?我看到的说明适用于Linux,但我在WAMP运行。谁能帮我把这些启用?

In my googling it seems as though the mysql functions are not included in the base download of php5? I am seeing instructions for Linux, but I am running on a WAMP. Can anyone help me get these enabled?

我的非常的肯定,我有mysql / PHP / Apache的配置正确,现在(当然Apache和PHP的工作),但我得到一个错误,当我尝试做任何数据库的功能。

I am fairly sure I have mysql/php/apache configured properly now (certainly apache and php are working), but I get an error when I try to do any database functions.

我唯一的php.ini文件在j:\\ PHP的,那就是我的windows路径的一部分。唯一的一点,根据我所看到和读到的是,也许我有一个旧版本的DLL。是否有人有一个链接到已知良好的呢?我使用PHP 5.2.11和Apache 2.2

My only php.ini file is in J:\php, and that is part of my windows PATH. The only thing, based on what I've seen and read is that perhaps I have an old version of the DLLs. Does someone have a link to known good ones? I am using PHP 5.2.11 and Apache 2.2

推荐答案

您需要下载激活php_mysql.dll ,因为它不再集结在新PHP的下载。 (更多信息

You'll need to download php_mysql.dll as it is not longer build-in in the newer php downloads. (more info)

这篇关于调用未定义的函数mysql_connect()函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆