Categories > TinyButStrong general >

last row parameter?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: B52
Date: 2006-01-03
Time: 00:02

last row parameter?

is there a sign which defines the last row? for example the last row of an mysql query
By: Skrol29
Date: 2006-01-03
Time: 01:35

Re: last row parameter?

Not as I know.
But you can play with MySql Php function to retrieve the number of row for a ressource id of an opened query.
And then you can go directly to that row.
By: B52
Date: 2006-01-03
Time: 11:01

Re: last row parameter?

and how can i do this?
By: Skrol29
Date: 2006-01-03
Time: 11:05

Re: last row parameter?

Can you precise what you need to do?
By: B52
Date: 2006-01-03
Time: 11:12

Re: last row parameter?

i want to make for example a news script
and at the end of every post is a line
but a the last post, there shouldnt be a line
so how can i permite that this line comes at the last post too
By: Skrol29
Date: 2006-01-03
Time: 11:24

Re: last row parameter?

Do do so, with current version, you have to first retrieve the number of row ( this can be done by first storing data in an array, and then define $row_nb=count($array) ) and then use this variable for a conditionnal section of block.

TBS will probably never be able to give an indocator of last row. This is logically a problem because TBS is not supposed to know if the current record is the last one during data merging. Because records are fetched one after one.