Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Move to specific record

Enthusiast ,
Sep 11, 2008 Sep 11, 2008

Copy link to clipboard

Copied

I am building a PHP detail page with a navigation list of database records down the left side, and the middle will display info for each of those records, so when one of the links on the left is clicked, the page reloads and displays the relevent info.

Thing is, it's not doing it! It is still displaying the first record of the db no matter what record is clicked.

I have a recordset for the navigation list, and I have a recordset for the content; I have a 'go to detail page' set up on the navigation recordset which posts to itself, ie. the same page it is on already, and the url displays the correct record ID; the page also has a 'move to specific record' behaviour which is based on the content recordset, but it's not working.

What am I missing? Obviously, I am doing something wrong. Can I not have content on a detail page where a DB driven link can post to the same detail page?

Does that makes sense?

Mat
TOPICS
Server side applications

Views

389
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Sep 12, 2008 Sep 12, 2008
Cooorrrr!, It's totally different to asp isn't it! I managed to figure it out by myself.

Thanks for all your help though...

Tch!

Votes

Translate
Enthusiast ,
Sep 11, 2008 Sep 11, 2008

Copy link to clipboard

Copied

Right, I have just built a list page and a detail page to test this out. I have done this hundreds of times in asp, but it doesn't seem to be working in php!

1/On the list page I have a list of database records that link to the detail page.
2/When the link is clicked I have a go to detail page and I am passing the url parameter of fld_id
3/On the detail page I have the move to sepcific record behaviour which is collecting the fld_id parameter

Is that not right? Is it handled differently in PHP to how it should be done in asp?

Mat

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 12, 2008 Sep 12, 2008

Copy link to clipboard

Copied

LATEST
Cooorrrr!, It's totally different to asp isn't it! I managed to figure it out by myself.

Thanks for all your help though...

Tch!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines