Forums

This topic is locked

Displaying the rows' numbers...

Posted 19 Aug 2002 18:56:39
1
has voted
19 Aug 2002 18:56:39 Kutt Niinepuu posted:
Hello,

I'm using MX with built-in PHP server model. I'd like to create a view that'll lokk like this:

1 Name Surname
2 Name2 Surname2
3 etc.,

The problem is, how to get the numbers in the first column? The numbers should be somehow dynamically generated (not tied to any given record), so that they don't have to be drawn from the table (i.e. from the id field or some other auto_increment field).

Once more, I wouldn't like to see the row numbers deleted from the view, as I delete records from the table.

Uuuhh, kinda confusing I know, but maybe some bright one could lend me a hand here...

Less is more1

Replies

Replied 19 Aug 2002 23:11:38
19 Aug 2002 23:11:38 Tuan Hoang replied:
Greetings Demonlike:

How about using the Numbered Ordered list html tags for the dynamically generated
<ol>
<li>rs.object
</ol>
and just make the repeat occur around the <li> element.
Replied 20 Aug 2002 17:04:13
20 Aug 2002 17:04:13 Kutt Niinepuu replied:
That was the most ingenius answer I could expect. However, I doubt that it will be able to work in a TABLE CELL where I have the place for the number. It'd work fine if I had the results listed just as text within <pre id=code><font face=courier size=2 id=code>&lt;p&gt; </font id=code></pre id=code> tags.

Less is more1

Reply to this topic