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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.