将本站设为首页   选择程序演示 → 【JRCMS演示】 技术交流QQ群:592312371

网站建设资讯

热门资讯

您的位置:首页 >>> 建站常识

PHPWEB常见错误Database error: Invalid SQL: select * from pwu_base_config

发布时间:2014-9-30 19:13:45 阅读次数439

大家做phpweb也许会出现这种问题:

Database error: Invalid SQL: select * from pwu_base_config
MySQL Error: 1146 (Table 'phpweb2051.pwu_base_config' doesn't exist)
#0 dbbase_sql->halt(Invalid SQL: select * from pwu_base_config) called at [D:\APMServ5.2.6\www\htdocs\2051\includes\db.inc.php:73] #1 dbbase_sql->query(select * from {P}_base_config) called at [D:\APMServ5.2.6\www\htdocs\2051\includes\common.inc.php:14] #2 readconfig() called at [D:\APMServ5.2.6\www\htdocs\2051\includes\common.inc.php:1288] #3 include(D:\APMServ5.2.6\www\htdocs\2051\includes\common.inc.php) called at [D:\APMServ5.2.6\www\htdocs\2051\index.php:3]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\APMServ5.2.6\www\htdocs\2051\includes\db.inc.php on line 80
Database error: Invalid SQL: select * from pwu_base_pageset where coltype='index' and pagename='index'
MySQL Error: 1146 (Table 'phpweb2051.pwu_base_pageset' doesn't exist)
#0 dbbase_sql->halt(Invalid SQL: select * from pwu_base_pageset where coltype='index' and pagename='index') called at [D:\APMServ5.2.6\www\htdocs\2051\includes\db.inc.php:73] #1 dbbase_sql->query(select * from {P}_base_pageset where coltype='index' and pagename='index') called at [D:\APMServ5.2.6\www\htdocs\2051\includes\common.inc.php:56] #2 pageset(index, index) called at [D:\APMServ5.2.6\www\htdocs\2051\index.php:7]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\APMServ5.2.6\www\htdocs\2051\includes\db.inc.php on line 80
Database error: Invalid SQL: select * from pwu_base_plus where plustype='' and pluslocat='' and display!='none' order by zindex
MySQL Error: 1146 (Table 'phpweb2051.pwu_base_plus' doesn't exist)
#0 dbbase_sql->halt(Invalid SQL: select * from pwu_base_plus where plustype='' and pluslocat='' and display!='none' order by zindex) called at [D:\APMServ5.2.6\www\htdocs\2051\includes\db.inc.php:73] #1 dbbase_sql->query(select * from {P}_base_plus where plustype='' and pluslocat='' and display!='none' order by zindex) called at [D:\APMServ5.2.6\www\htdocs\2051\includes\common.inc.php:344] #2 printpage() called at [D:\APMServ5.2.6\www\htdocs\2051\index.php:11]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\APMServ5.2.6\www\htdocs\2051\includes\db.inc.php on line 80
Database error: Invalid SQL: select * from pwu_advs_pop where ifpop='1'
MySQL Error: 1146 (Table 'phpweb2051.pwu_advs_pop' doesn't exist)
#0 dbbase_sql->halt(Invalid SQL: select * from pwu_advs_pop where ifpop='1') called at [D:\APMServ5.2.6\www\htdocs\2051\includes\db.inc.php:73] #1 dbbase_sql->query(select * from {P}_advs_pop where ifpop='1') called at [D:\APMServ5.2.6\www\htdocs\2051\includes\common.inc.php:1248] #2 winpop() called at [D:\APMServ5.2.6\www\htdocs\2051\includes\common.inc.php:568] #3 printpage() called at [D:\APMServ5.2.6\www\htdocs\2051\index.php:11]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\APMServ5.2.6\www\htdocs\2051\includes\db.inc.php on line 80



这是因为 网站根目录下的config.inc.php 打开此文件 然后


#[数据表前缀]
$TablePre="pwn";

把数据库表前缀 跟数据库里面的表前缀要对应起来,不然会出现此错误。

如果问题还没有解决,那就是你的数据库是空的。没有数据!


下一篇:如何查询同IP网站

上一篇:PHPWEB忘记密码怎么办?

网站地图 | 关于我们 | 联系我们