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

how to display the current record of a recordset (using repeat region)

New Here ,
Feb 01, 2007 Feb 01, 2007

Copy link to clipboard

Copied

Hi guys. Can someone tell me how i would simply display the current record of a recordset that is being displayed on screen via 'repeat region'?

I have 3 fields in the database - ID, name, score. It forms a leaderboard. I need to generate the position of each player in the table (ordered by score obviously).

This sounds really simple and probably is.

$row_scorelist[currentrecord] ?

^^ something along those lines, but that actually works.

thanks, P

P.S I'm using PHP/MYSQL
TOPICS
Server side applications

Views

190
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
LEGEND ,
Feb 01, 2007 Feb 01, 2007

Copy link to clipboard

Copied

LATEST
On Thu, 1 Feb 2007 17:09:12 +0000 (UTC), "PhilB2007"
<webforumsuser@macromedia.com> wrote:

>Hi guys. Can someone tell me how i would simply display the current record of a
>recordset that is being displayed on screen via 'repeat region'?
>
> I have 3 fields in the database - ID, name, score. It forms a leaderboard. I
>need to generate the position of each player in the table (ordered by score
>obviously).
>
> This sounds really simple and probably is.
>
> $row_scorelist[currentrecord] ?
>
> ^^ something along those lines, but that actually works.

before your repeat region starts you need to initialise a variable and
then increment it after each record is displayed:

$counter = 1;

START REPEAT HERE

echo $counter YOUR RECORD HERE

$counter++;

LOOP HERE


--
Steve
steve at flyingtigerwebdesign dot com

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