You might as well add a reference of your db-object to global scope.
[code]
$GLOBALS['_db_object'] =& $db;
[/code]
Then you could access it anywhere in your code like this:
[code]
$GLOBALS['_db_object']->sumbitQuery($query);
[/code]
Daniel
Angelo Binc2 wrote:
Ok guys, I have fixed the problem and i
Ok guys, I have fixed the problem and its a really easy fix. basically
the object was out of scope and therefore PHP treated my object name as
a new variable and therefore it obvioulsy was not set because it is a
new variable. SO the way I got it working was to just call the code
directly and not p
2 matches
Mail list logo