Dayo Posted October 9, 2010 Share Posted October 9, 2010 try including config.php at the top under <?php Quote Link to comment Share on other sites More sharing options...
Equinox Posted October 9, 2010 Share Posted October 9, 2010 Before "global $_CONFIG" are you including the file in which $_CONFIG is defined? And why don't you just right it in yourself ? _mysql. My understanding is that the McCodes class consists of 2 files, mysql and mysqli, unless you're constantly switching between the both then it shouldn't matter. Quote Link to comment Share on other sites More sharing options...
Dominion Posted October 9, 2010 Share Posted October 9, 2010 i don't see why you would wish to do this, however... <?php switch($_GET['action']) { case 'register': include'register.php'; break; default: include 'login.php'; break; } ?> should be something to work off? o btw don't use what i posted just an example :) Quote Link to comment Share on other sites More sharing options...
Dominion Posted October 10, 2010 Share Posted October 10, 2010 i know, try that out and it will read the file correctly. Quote Link to comment 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.