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.