Dayo Posted October 9, 2010 Posted October 9, 2010 try including config.php at the top under <?php Quote
Equinox Posted October 9, 2010 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
Dominion Posted October 9, 2010 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
Dominion Posted October 10, 2010 Posted October 10, 2010 i know, try that out and it will read the file correctly. Quote
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.