Jump to content


Help with PHP navigation


4 replies to this topic

#1 Extinct

    Young Padawan

  • Members
  • Pip
  • 27 posts
  • Gender:Male
  • Location:USA

Posted 01 February 2007 - 12:43 PM

I am using a PHP navigation on my site ( home.php?id=folder&page=page )
I have coded a matches script for my clan but i'm trying to link the matches to a file that shows all of the information of the match.

It works when I link them to ex: viewmatch.php?id=$id but I want them to link to home.php?id=matches&page=viewmatch&id=$id considering im using a php navigation, anyone knows how to make it work?

Oh yeah almost forgot, when I tried to link it like that it worked, it went to the file ( viewmatch.php ) but it didn't echo the info for the specified match, it only shows the info when I link it to viewmatch.php?id=$id.

Help appreciated. If you don't understand what I mean or need more info just tell me.

Edited by Extinct, 01 February 2007 - 12:43 PM.


#2 blacky

    Young Padawan

  • Members
  • Pip
  • 34 posts
  • Gender:Male

Posted 01 February 2007 - 02:06 PM

what you asked is a little confusing. but from what i got, you want to replace

?id=$id

with

?id=matches&page=viewmatch&id=$id

right?


and would $id be the only variable that would actually change?

well, right off the bat, the first problem is you cant have two "id" variables, the 2nd would overwrite the first.

#3 Extinct

    Young Padawan

  • Members
  • Pip
  • 27 posts
  • Gender:Male
  • Location:USA

Posted 02 February 2007 - 02:50 AM

Oh I see. Well what if I change it to ?x or whatever?

#4 Extinct

    Young Padawan

  • Members
  • Pip
  • 27 posts
  • Gender:Male
  • Location:USA

Posted 02 February 2007 - 02:54 AM

Haha thanks now everything works alright! I had to change the first ?id to something else and it worked.

Thank you so much :)

#5 blacky

    Young Padawan

  • Members
  • Pip
  • 34 posts
  • Gender:Male

Posted 03 February 2007 - 02:48 AM

heh, no prob. :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users