分享

写回答

发帖

[提问] 数据库连接不上?

GoDaddy GoDaddy 1086 人阅读 | 6 人回复

发表于 2009-12-23 16:04:37 | 显示全部楼层 |阅读模式

数据库服务器(*):  数据库服务器地址, 一般为 localhost             meiju.db.5400367.hostedresource.com
数据库服务器端口:   MYSQL端口,空为默认端口, 一般为空
数据库用户名:  MYSQL数据库链接账号
数据库密码:  MYSQL数据库链接密码
数据库名(*):   数据库名称                                            账号
表名前缀(*):  同一数据库安装多个CMS时可改变默认                      密码
COOKIE前缀(*): 前台:  
后台:  
由英文字母组成,默认即可
内置初始数据:  是 测试软件时选择


提示 您输入的数据库名不存在

1

1

2

2

回答|共 6 个

add.c

发表于 2009-12-23 16:11:15 | 显示全部楼层

数据库名和数据库用户名貌似是一样的,你检查下

我是国典

发表于 2009-12-23 16:21:42 | 显示全部楼层

多谢斑竹  按你的方法成功啦  提示  数据库连接上 提示成功  然后输入后台账号密码  弹出
Fatal error: Call to undefined function eCheckAccessIp() in /home/content/g/u/o/guodian/html/meijuya/e/class/functions.php on line 19


第19行错误   请斑竹在看一下 谢谢  
functions.php 文件如下:

<?php

//处理专题提交变量
function DoPostZtVar($add){
        if(empty($add[zttype])){
                $add[zttype]=".html";
        }
        if(empty($add[ztnum])){
                $add[ztnum]=25;
        }
        $add[zcid]=(int)$add['zcid'];
        $add[jstempid]=(int)$add['jstempid'];
        $add[intro]=addslashes(RepPhpAspJspcode($add[intro]));
        $add[ztpagekey]=addslashes(RepPhpAspJspcode($add[ztpagekey]));
        $add[ztnum]=(int)$add[ztnum];
        $add[listtempid]=(int)$add[listtempid];
        $add[newline]=(int)$add[newline];
        $add[newstrlen]=(int)$add[newstrlen];
        $add[newshowdate]=(int)$add[newshowdate];
        $add[hotline]=(int)$add[hotline];
        $add[hotstrlen]=(int)$add[hotstrlen];
        $add[hotshowdate]=(int)$add[hotshowdate];
        $add[goodline]=(int)$add[goodline];
        $add[goodshowdate]=(int)$add[goodshowdate];
        $add[goodstrlen]=(int)$add[goodstrlen];
        $add[classid]=(int)$add[classid];
        $add[hotplline]=(int)$add[hotplline];
        $add[hotplshowdate]=(int)$add[hotplshowdate];
        $add[hotplstrlen]=(int)$add[hotplstrlen];
        $add[firstline]=(int)$add[firstline];
        $add[firststrlen]=(int)$add[firststrlen];
        $add[firstshowdate]=(int)$add[firstshowdate];
        $add[islist]=(int)$add[islist];
        $add[maxnum]=(int)$add[maxnum];
        $add[showzt]=(int)$add[showzt];
        $add[classtempid]=(int)$add[classtempid];
        $add['myorder']=(int)$add['myorder'];
        $add[nrejs]=(int)$add[nrejs];
        //目录
        $add[ztpath]=$add['pripath'].$add['ztpath'];
        return $add;
}

//增加专题
function AddZt($add,$userid,$username){
        global $empire,$class_r,$dbtbpre;
        $add[ztpath]=trim($add[ztpath]);
        if(!$add[ztname]||!$add[listtempid]||!$add[ztpath]){
                printerror("EmptyZt","");
        }
        CheckLevel($userid,$username,$classid,"zt");
        $add=DoPostZtVar($add);
        $createpath='../../'.$add[ztpath];
        //检测目录是否存在
        if(file_exists($createpath)){
                printerror("ReZtpath","");
        }
        CreateZtPath($add[ztpath]);//建立专题目录
        //取得表名
        $tabler=GetModTable(GetListtempMid($add[listtempid]));
        $tabler[tid]=(int)$tabler[tid];
        $sql=$empire->query("insert into {$dbtbpre}enewszt(ztname,ztnum,listtempid,onclick,ztpath,zttype,newline,newstrlen,newshowdate,zturl,hotline,hotstrlen,hotshowdate,goodline,goodshowdate,goodstrlen,classid,hotplline,hotplshowdate,hotplstrlen,firstline,firststrlen,firstshowdate,islist,maxnum,tid,tbname,reorderf,reorder,intro,ztimg,zcid,jstempid,showzt,ztpagekey,classtempid,myorder,nrejs) values('$add[ztname]',$add[ztnum],$add[listtempid],0,'$add[ztpath]','$add[zttype]',$add[newline],$add[newstrlen],$add[newshowdate],'$add[zturl]',$add[hotline],$add[hotstrlen],$add[hotshowdate],$add[goodline],$add[goodshowdate],$add[goodstrlen],$add[classid],$add[hotplline],$add[hotplshowdate],$add[hotplstrlen],$add[firstline],$add[firststrlen],$add[firstshowdate],$add[islist],$add[maxnum],$tabler[tid],'$tabler[tbname]','$add[reorderf]','$add[reorder]','$add[intro]','$add[ztimg]',$add[zcid],$add[jstempid],$add[showzt],'$add[ztpagekey]','$add[classtempid]',$add[myorder],$add[nrejs]);");
        $ztid=$empire->lastid();
        //生成页面
        if(!$add[islist]){
                NewsBq($ztid,GetClassTemp($add['classtempid']),3,1);
    }
        GetClass();//更新缓存
        if($sql){
                insert_dolog("ztid=".$ztid."<br>ztname=".$add[ztname]);//操作日志
                printerror("AddZtSuccess","AddZt.php?enews=AddZt");
        }
        else{
                printerror("DbError","");
        }
}

//修改专题
function EditZt($add,$userid,$username){
        global $empire,$class_r,$dbtbpre;
        $add[ztid]=(int)$add[ztid];
        $add[ztpath]=trim($add[ztpath]);
        if(!$add[ztname]||!$add[listtempid]||!$add[ztpath]||!$add[ztid]){
                printerror("EmptyZt","");
        }
        CheckLevel($userid,$username,$classid,"zt");
        $add=DoPostZtVar($add);
        //改变目录
        if($add[oldztpath]<>$add[ztpath]){
                $createpath='../../'.$add[ztpath];
                if(file_exists($createpath)){
                        printerror("ReZtpath","");
                }
                if($add['oldpripath']==$add['pripath']){
                        $new="../../";
                        @rename($new.$add[oldztpath],$new.$add[ztpath]);//改变目录名
                }
                else{
                        CreateZtPath($add[ztpath]);//建立专题目录

add.c

发表于 2009-12-23 17:31:58 | 显示全部楼层

没看到这个函数eCheckAccessIp()

我是国典

发表于 2009-12-23 17:42:59 | 显示全部楼层

那这是哪里问题  我该怎么修改   摸索半天啦  还没解决  

add.c

发表于 2009-12-23 21:10:30 | 显示全部楼层

不清楚,你把错误信息发给godaddy看看

望穿秋水

发表于 2009-12-23 21:11:59 | 显示全部楼层

先百度一下看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则