Date: 11/26/99
- Next message: Giorgio Bozio: "[PHPLIB] list items in cart"
- Previous message: Lars S. Geisler: "[PHPLIB] Objects and functions"
- In reply to: Lars S. Geisler: "[PHPLIB] Objects and functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> In index.php3, I create a new object $CrazyDB:
> $CrazyDB = New DB_Sql;
>
> Then, I'd like to include some functions from a file called _functions.php3.
> How can I let those functions use the $CrazyDB-object?
>
Just put at the start of those function the statement
global $CrazyDB;
and you've done.
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Fabrizio Ermini e-mail:
C.so Umberto, 7 f.ermini <email protected>
loc. Meleto Valdarno faermini <email protected>
52020 Cavriglia (AR) ICQ UIN: 24.64.37
ITALY
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Giorgio Bozio: "[PHPLIB] list items in cart"
- Previous message: Lars S. Geisler: "[PHPLIB] Objects and functions"
- In reply to: Lars S. Geisler: "[PHPLIB] Objects and functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

