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! Link to comment https://forums.phpfreaks.com/topic/17446-using-mysql-get-id-with-this-code/ 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 ;( Link to comment https://forums.phpfreaks.com/topic/17446-using-mysql-get-id-with-this-code/#findComment-74299 Share on other sites More sharing options...
newb Posted August 14, 2006 Share Posted August 14, 2006 u confuse me Link to comment https://forums.phpfreaks.com/topic/17446-using-mysql-get-id-with-this-code/#findComment-74302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.