hlstriker Posted August 13, 2006 Share Posted August 13, 2006 Hey everyone, I have a database and need to get the id from it to load the pages. I am using a new navigation code that I found in a tutorial, but now it wont open my pages with '?id=x'.Here is the code for the navigation...[code]<?if (isset($_GET['page']) && isset($_GET['direc']) && file_exists('pages/'.$_GET[direc].'/'.$_GET[page].'.php')){include 'pages/'.$_GET[direc].'/'.$_GET[page].'.php';} else {include('pages/main/news.php');}?>[/code]With this when I try to tack an '?id=1' it won't load the page, when it used to load the page just fine. Can anyone help me fix this? Thanks! Quote Link to comment Share on other sites More sharing options...
hlstriker Posted August 14, 2006 Author Share Posted August 14, 2006 Does anyone know how to fix this?I don't even know where to begin at ;( Quote Link to comment Share on other sites More sharing options...
newb Posted August 14, 2006 Share Posted August 14, 2006 u confuse me 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.