hno Posted June 14, 2009 Share Posted June 14, 2009 HI I use require_once function to include the connection page to the database .But in the function that I have created, $dbc function does not recorganize ($dbc has the connection information to databae and included by the require_once ) even I use 'global $dbc;' but I still have problem by the way $dbc recorganize in out of my function.What should I do now? thanks Link to comment https://forums.phpfreaks.com/topic/162141-problem-in-user-define-function/ Share on other sites More sharing options...
Alex Posted June 14, 2009 Share Posted June 14, 2009 Show us your code. It sounds like a scope problem. Link to comment https://forums.phpfreaks.com/topic/162141-problem-in-user-define-function/#findComment-855589 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.