fatal error 网上找的答案都解决不了解决方法

WBOY
Release: 2016-06-13 10:17:07
Original
1150 people have browsed it

fatal error 网上找的答案都解决不了
错误提示:
Fatal error: Call to undefined function queryMysql() in E:\xampp\htdocs\business\include\days_mgmt.php on line 7
代码:

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?phpif (isset($_POST['btn_add'])&&$_POST['btn_add']=="Add Day"){    $day=$_POST['txt_day'];    $day_no=$_POST['txt_day_no'];    $query="INSERT INTO TRADING_DAYS_CONTAINER (days_no, days) VALUES ('$day_no', '$day')";    $result=queryMysql($query); //这里的queryMysql()就是mysql_query()    if($result)    {        header("Location:admin_trading.php?class=days_mgmt");    }}?>
Copy after login

我没有自己配置php mysql环境,是下载的XAMPP。
关键是,我都写了好几个月了,一直这么写的,都没出现这个问题,应该不是配置问题吧!
queryMysql()是lib/function.php里面的,我在开头也include了。

搞死了,这是怎么回事????大大们!

------解决方案--------------------
那你在
$result=queryMysql($query); 前
加一句 print_r(get_included_files()); 

看看 lib/function.php 是否在其中
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template