Boyan Nedkov wrote:
Initializing data members ("var"-s) of a class with non-constant values
is completely legal operation in PHP, so I don't think this could be a
reason for the problem.
hmmm... PHP manual says something else...
http://www.php.net/manual/en/language.oop.php
"In PHP 4, only con
Hey guys,
Thanks for replying.
This is the solution that actually works.
class ads_DB extends DB_Sql {
var $Host = "";
var $Database = "";
var $User = "";
var $Password = "";
/* public: constructor */
function ads_DB($query = "") {
global $MR_Host,$MR_Database,$MR_User,$MR_
Ryan, Pavel,
Pavel Jartsev wrote:
Ryan A wrote:
...
>
class ads_DB extends DB_Sql {
var $Host = $MR_Host;
var $Database = $MR_Database;
var $User = $MR_User;
var $Password = $MR_Password;
}
>
I think, Your problem is here. If i remember correctly, then PHP4
doesn't allow to
Ryan A wrote:
...
>
class ads_DB extends DB_Sql {
var $Host = $MR_Host;
var $Database = $MR_Database;
var $User = $MR_User;
var $Password = $MR_Password;
}
>
I think, Your problem is here. If i remember correctly, then PHP4
doesn't allow to initialize "var"-s with non-constant val
Hi,
I have a database class that is working perfectly by itself, the only
problem is it works fine when the login details to the database are in that
file...but since i have other apps using that login info I want to have the
login info in a seperate file an include it in this class...but when i do
5 matches
Mail list logo