|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-07-27 16:54 UTC] zeev at cvs dot php dot net
[1999-08-07 11:39 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
first I used this script : if (!$config) { $theroot="/usr/local/etc/httpd/sites/idm-conseil.com"; $euro=6.55957; //conversion euro vers francs include "phlib/db_mysql.inc"; include "phlib/db_usql.inc"; include "phlib/table.inc"; include "phlib/tmpl_table.inc"; include "epa/listbox.inc"; include "epa/checkboxes.inc"; $config=1; Class DB_DH extends DB_USql { var $Host = ""; var $Database = "directhotel"; var $User = "root"; var $Password = ""; } } // fin if (!$config) the class DB_DH register but the variable are blank when I instantiate an object. then I modified to this one $theroot="/usr/local/etc/httpd/sites/idm-conseil.com"; $euro=6.55957; //conversion euro vers francs include "phlib/db_mysql.inc"; include "phlib/db_usql.inc"; include "phlib/table.inc"; include "phlib/tmpl_table.inc"; include "epa/listbox.inc"; include "epa/checkboxes.inc"; Class DB_DH extends DB_USql { var $Host = ""; var $Database = "directhotel"; var $User = "root"; var $Password = ""; } and I only have a message saying that I had no data. then I separated the class statement in one php include : file local.inc contains : Class DB_DH extends DB_USql { var $Host = ""; var $Database = "directhotel"; var $User = "root"; var $Password = ""; } file config.inc contains: $theroot="/usr/local/etc/httpd/sites/idm-conseil.com"; $euro=6.55957; //conversion euro vers francs include "phlib/db_mysql.inc"; include "phlib/db_usql.inc"; include "phlib/table.inc"; include "phlib/tmpl_table.inc"; include "epa/listbox.inc"; include "epa/checkboxes.inc"; include "local.inc"; and it works fine. but this is only a round away. bye