Warning:mysql_connect()[function.mysql-connect]:Accessdeniedforuser'ODBC'@'localhost'(usingpassword:NO)inE:\WebServer\bbtt\common\database.phponline8Warning:mysql_select_...
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in E:\WebServer\bbtt\common\database.php on line 8
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in E:\WebServer\bbtt\common\database.php on line 9
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in E:\WebServer\bbtt\common\database.php on line 19
Warning: Invalid argument supplied for foreach() in E:\WebServer\bbtt\common\function.php on line 16
我就是在index.php中加一个require_once("common/function.php");使用了一个里面的函数,就出这错误,而我直接创建一个空的test.php再require_once("common/function.php");使用函数,就没有问题~很郁闷...
代码太多,不容易帖上~有谁见过这错误吗?还有我database.php里面是我数据库的一个连接类~之前用都没出过问题~
------------------------------------------
那个全局量我定义在dbConfig.php里面了.
------------------------------------------
bbtt
|-----common
| |---dbConfig.php
| |---database.php
|-----index.php
文件层次是这样的话,我在database.php里面包含"dbConfig.php"
再在index.php里面包含"common/database.php",这样的二级包含有效吗?
展开