Categories > TinyButStrong general >

show by ID

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Ronei
Date: 2009-02-05
Time: 19:14

show by ID

Good afternoon staff once again I need you, need to know how to show the data of a $ TBS-> MergeBlock () without the name of the fields returned by SQL done in the table, for example the key of the array $ TBS -> MergeBlock (), this is possible? because I show data from several studies in the same form htm, as a generic form, where the User will choose the table to be searched, then I show the form, because the 3 search fields that will bring the same type, but different names, and would not want to create a htm form to receive a search ... I look at now thanks
By: TomH
Date: 2009-02-05
Time: 21:31

Re: show by ID

Ronei,

Two possible ways...

(1) http://www.tinybutstrong.com/forum.php?msg_id=2055#

(2) If you use MySQL, you can have it to give you the field names from the table by doing the query...
$sql= "DESCRIBE $table_name";
By: Ronei
Date: 2009-02-06
Time: 12:21

Re: show by ID

   
(1) I am using Firebird, I can use this same example that you have the option (1).
(2) There is only this way to reference the column of $ TBS-> MergeBlock?