Re: [PHPLIB] Objects and functions From: Fabrizio Ermini (f.ermini <email protected>)
Date: 11/26/99

> 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.