phpweb Database error: Invalid SQL: select * from pwu_base_c2015-07-06 23:29 厦门蓝典网络科技有限公司
内容摘要:大家做phpweb也许会出现这种问题: Database error: Invalid SQL: select * from pwu_base_config MySQL Error: 1146 (Table phpweb2051.pwu_base_config doesnt exist) #0 dbbase_sql-halt(Invalid SQL: select * from pwu_base_config) called...
大家做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";
把数据库表前缀 跟数据库里面的表前缀要对应起来,不然会出现此错误。
如果问题还没有解决,那就是你的数据库是空的。没有数据!
|