dongxin9759 2015-11-25 05:15
浏览 84

在iis 7中不断收到“PHP致命错误:调用未定义函数mysql_connect()”

I am very new to web development but am required to use iis 7 and php to pull data from a remote mysql database to be displayed in a series of webpages.

I installed iis 7 along with php fine and can run phpinfo() through a .php file from a browser by going to localhost/testphp.php , however, when I tried to connect to a mysql server using the function mysql_connect in another .php file I got the error in the title.

I am running php 5.6.15 and can't find much in the way of an answer for this.

I also don't seem to have a php.ini file (let alone know if I should have one) and phpinfo() tells me that my loaded configuration file is "(none)".

I'm at my wit's end trying to find a solution to this with as little experience as I have. Does anyone know how to solve this problem? If so I would much appreciate any help I can get.

Thank you!

  • 写回答

2条回答 默认 最新

  • donglu9896 2015-11-25 05:22
    关注

    As of PHP 5.5, MySQL is deprecated. http://php.net/manual/en/migration55.deprecated.php

    You should go for alternative ( MySQLi for example ), or use older version of PHP.

    评论

报告相同问题?

悬赏问题

  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法