Categories > TinyButStrong general >

How do I show array variables (eg. mysql queries) using tbs without merging blocks?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: desbest tynamite
Date: 2008-01-21
Time: 20:00

How do I show array variables (eg. mysql queries) using tbs without merging blocks?

How do I show array variables (eg. mysql queries) using tbs without merging blocks?

This is what I don't like to do.
<div class="titlebox">
<table><tr><td>[this.res_name;block=tr]<font class="titlebox">[this.title]</font></td></tr></table>
</div>

This is what I would like to do.
<div class="titlebox">
[this.res_name;block=tr][this.title]
</div>
By: TomH
Date: 2008-01-21
Time: 20:09

Re: How do I show array variables (eg. mysql queries) using tbs without merging blocks?

Could you please show both the query statement and the query result that you are doing please?
By: desbest tynamite
Date: 2008-01-21
Time: 22:52

Re: How do I show array variables (eg. mysql queries) using tbs without merging blocks?

comic.php
$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('index.php') ;
$TBS->MergeBlock('this',$conn,"SELECT * FROM strips WHERE id = '$idgot' LIMIT $offset, $rowsPerPage") ;
$TBS->Show() ;

index.php
^^ look above ^^
By: desbest tynamite
Date: 2008-01-21
Time: 23:12

Re: How do I show array variables (eg. mysql queries) using tbs without merging blocks?

$offset has no value
$rowsPerPage is 1
By: desbest tynamite
Date: 2008-01-21
Time: 23:24

Re: How do I show array variables (eg. mysql queries) using tbs without merging blocks?

I would like tbs to do to div's what it does for tables.
This is what I want
<div>[strip.title;block=div]<br><hr></div>
<div>[strip.title;block=div]<br><hr></div>
By: desbest tynamite
Date: 2008-01-21
Time: 23:40

Re: How do I show array variables (eg. mysql queries) using tbs without merging blocks?

Forget about this topic.
I got to solve this problem by making up my own html tag called <xd>
[strip.title;block=xd]
By: desbest tynamite
Date: 2008-01-21
Time: 23:41

Re: How do I show array variables (eg. mysql queries) using tbs without merging blocks?

Thanks for your continued help anyway.
By: desbest
Date: 2009-06-21
Time: 15:27

Re: How do I show array variables (eg. mysql queries) using tbs without merging blocks?

If you're looking for my myspace or music site, go to
http://tynamite.uk.to
http://www.myspace.com/tynamitemusic