|
| |
1. Help with a function |
|
Reply |
|
|
 Plamen | 2008-06-08 20:35:33 |
I have included the class in my index.php an all queries work fine.
Once i click on the link to go to register.php, none of the queries there work.
Do i need to re-include ez_sql.php? And the connection was never closed!
I also have a functions.php (included in register.php), which
contains some functions, that use the $db object, but those functions
do not work!
All i get is this error:
Fatal error: Call to a member function get_results() on a non-object
PLEASE HELP!!
|
| |
2. Re: Help with a function |
|
Reply |
|
|
 Lam Zhao Yang | 2008-10-16 05:36:20 |
hi there,
just add
global $db;
to your function.
cheers |
|