您好,欢迎访问一九零五行业门户网

麻烦各位帮忙看下,网站发布后这个到底什么问题?

实在太着急了,已经一周时间都没找到原因。由于本人不是做php的,所有完全一点头绪都没有
db.inc.php  文件代码如下:
host=$host;
  $this->database=$database;
  $this->user=$dbuser;
  $this->password=$dbpassword;
  $this->query($query);
}
function query($query_string) {
/* no empty queries, please, since php4 chokes on them. */
if ($query_string == )
  /* the empty query string is passed on from the constructor,
   * when calling the class without a query, e.g. in situations
   * like these: '$db = new db_sql_subclass;'
   */
  return 0;
if (!$this->connect()) {
  return 0; /* we already complained in connect() about that. */
};
# new query, discard previous result.
if ($this->query_id) {
  $this->free();
}
if ($this->debug)
  printf(debug: query = %s
\n, $query_string);
$this->query_id = @mysql_query($query_string,$this->link_id);
$this->row   = 0;
$this->errno = mysql_errno();
$this->error = mysql_error();
if (!$this->query_id) {
//$this->savequerylog($this->errno,$this->error,$query_string);
//$this->halt(invalid sql: .$query_string);
if ($this->locked) {
$this->unlock();
}
//header(location:../admin/queryerror.php);
}
# will return nada if it fails. that's fine.
return $this->query_id;
   }
}//class
}
?>
回复讨论(解决方案) class dlysql extends  db_sql {
这个 db_sql 类没有定义
到 config.inc.php 中去找一下,看看是否是你写错了
其它类似信息

推荐信息