当前日期时间
当前时间:
网站标志
Logo
全站搜索
广告位
phpweb图片广告
广告位
phpweb图片广告
自定内容

phpweb已经是国内最强的的开源电子商务系统了,但并非完美,因为任何...

互联网3年一轮回,京东凡客等电商品牌在三年之前也不过是小打小闹,而如...

电商已经成为趋势,传统行业的竞争已经逐渐演变到网络上,也有不少用Weboss...

phpweb系统是固定的模式,适用于大部分行业与需求。但有一些行业还是有自己...

当前位置
文章正文

phpweb Database error: Invalid SQL: select * from pwu_base_config

发表:管理员  发表时间:2013-07-30 14:52:01   阅读:(5419)次  

大家做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 pwn_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 pwn_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 pwn_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 pwn_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”;

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

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

 

假如我们资讯/文章对您有所帮助,您可以通过扫描捐赠二维码支持一下我们~

感谢您对我们的支持,您的小小支持让我们有信心走得更远!

脚注信息
© 2005-2015 草莓互联(100cm.cn) 广州同福信息科技有限公司 版权所有,并保留所有权利。

广州市东莞庄一横路116号 粤ICP备11046216号

经营性网站备案信息 广州网络警察报警平台 不良信息举报中心  百度信誉档案 广州工商红盾网 可信网站认证