Jump to content


Photo

Using MySQL get id with this code?


  • Please log in to reply
2 replies to this topic

#1 hlstriker

hlstriker
  • Members
  • PipPipPip
  • Advanced Member
  • 84 posts

Posted 13 August 2006 - 11:36 PM

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...
<?
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');
}
?>

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!

#2 hlstriker

hlstriker
  • Members
  • PipPipPip
  • Advanced Member
  • 84 posts

Posted 14 August 2006 - 02:42 AM

Does anyone know how to fix this?

I don't even know where to begin at ;(

#3 newb

newb
  • Members
  • PipPipPip
  • Advanced Member
  • 454 posts

Posted 14 August 2006 - 02:51 AM

u confuse me




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users