Categories > TinyButStrong general >

Subblock and Subquery !

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Rromulo
Date: 2009-04-10
Time: 18:33

Subblock and Subquery !

$TBS->MergeBlock('blk1',$a,"SELECT id FROM reportagens WHERE tipo_reportagens = '1' ORDER BY id ASC") ;

$TBS->MergeBlock('blk2',$a,"SELECT * FROM fotos_reportagens WHERE id_reportagens = 'blk1.id' ORDER BY id_reportagens ASC") ;


Hi to all!

Staff, as I make so that the results of my first query are used as filter in second.

By: TomH
Date: 2009-04-11
Time: 04:27

Re: Subblock and Subquery !

See the examples section on TBS site

http://www.tinybutstrong.com/examples.php

look at "Sub-blocks" example

HTH,