Categories > TinyButStrong general >

Trouble with MergeBlock using and array from mssql_fetch_array

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Allen
Date: 2006-11-29
Time: 18:55

Trouble with MergeBlock using and array from mssql_fetch_array

when I try to do an MergeBlock using an array from mssql_fetch_array
I get the following

TinyButStrong Error in field [blk1.NewsID...] : item 'NewsID' is not an existing key in the array.
TinyButStrong Error in field [blk1.HeadLine...] : item 'HeadLine' is not an existing key in the array.

when I print_r the array from mssql_fetch_array this is what I see.
Array ( [NewsID] => 1 [HeadLine] => Rush to marry ends in tragedy )

So I know the keys are in the array. Am I doing something wrong here?
By: Skrol29
Date: 2006-11-29
Time: 20:49

Re: Trouble with MergeBlock using and array from mssql_fetch_array

Maybe you're trying to merge 1 record not a set of several records.
TBS assumes that you're providing an array of array.
By: Allen
Date: 2006-11-30
Time: 01:11

Re: Trouble with MergeBlock using and array from mssql_fetch_array

Thank you!