Please take a look at the question after the website is released?

Source: Internet
Author: User
Please take a look at the question after the website is released? I am so worried that I have not found any reason for the week. Because I am not a php engineer, I have no clue at all.



The code of the DB. inc. php file is as follows:

/*
* Database
* Set the database variable to a local application.
*/
If (! Defined ('dlydb _ INC_PHP '))
{
Define ('dlydb _ INC_PHP ', true );
Require_once ('config. inc. php ');

Class DlySql extends DB_ SQL {
Var $ Host;
Var $ Database;
Var $ User;
Var $ Password;
Var $ Record = array ();
Var $ Auto_free = 1;
Var $ Row;

Function DlySql ($ query = "")
{
Global $ host, $ database, $ dbuser, $ dbpassword;
// Initialize to settings in config. inc. php
$ This-> 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
}
?>


Reply to discussion (solution)

Class DlySql extends DB_ SQL {

This DB_ SQL class is not defined
Go to config. inc. php and check if you have written an error.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.