Re: [PHP] Error using require_once

2002-12-12 Thread Jason Wong
On Friday 13 December 2002 09:20, enediel wrote: > when I make a call from index.php to a function defined on > global_functions.php, the called function can not use the database > connection referred before. Inside the function declare the variable you want to use as "global", see manual for de

[PHP] Error using require_once

2002-12-12 Thread enediel
I have a php files dependencies in this order: .../php/index php .../php/globals/db_connection.php .../php/globas/global_functions.php in db_connection.php I declared a variable with the connection to a postgreSQL database. on index.php, everything is fine I can use the database connection