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

Display all database results with URL variable?

Participant ,
Aug 19, 2009 Aug 19, 2009

Hi,

I am using PHP MySQL

I have a database that is Alphabetically ordered. I am trying to create a dynamic page that will only show A, B, C, ... and so on. I do this by Creating links named after the letters in the Alphabet. I have a recordset that filters the table using a URL variable that uses Type. Unfortunately when I click on the link it only displays the first record that contains an A. Not all the records that contain  A.

For example:

I have a link that is just "A". Its link is ?Type=A. In the database table their are 3 records that contain A under Type, but when I click on it only one record containing A is displayed. I hope you are following this.

If you want a direct reference to what I am doing go to:

http://cwhazzoo.com/gamelinktesting.php

This is how my database is designed:

ID (primary key)NameLetter
0001Example AA

I want to be able to show only the selected letter of records using only one page. Thanks!

TOPICS
Server side applications
593
Translate
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

LEGEND , Aug 19, 2009 Aug 19, 2009

>Should I use the repeat region?

Yep. That's what it's for.

Translate
LEGEND ,
Aug 19, 2009 Aug 19, 2009

Are you using a DW repeating region, or some other method that will loop through the recordset and output all rows?

Translate
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
Participant ,
Aug 19, 2009 Aug 19, 2009

I am using DW and the dynamic text feature. Should I use the repeat region?

Translate
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
LEGEND ,
Aug 19, 2009 Aug 19, 2009
LATEST

>Should I use the repeat region?

Yep. That's what it's for.

Translate
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