By: Allen
Date: 2012-05-08
Time: 19:27
|
Problem getting a Mergeblock to work with a PHP array I get a corrupted fileHello, I am new to TBS and Open TBS, but I see it's potential.
I've written a code which takes lines from a text doc and puts them in a php array. I am then trying to put the array then through a Mergeblock. Here is the code after I get the connection to MySQL:
The template block at the moment is
but I have tried a lot of other versions of this as well. The document does download but when I open the file up I get 26 pages of compress materials that start like this.
I thought at first it was my array, then I thought it might be my merge block, and then I thought it was the show method. I don't know what to think now. Any thoughts on how to get this to work will be deeply appreciated, even if it is a reference that will give me a clue. Allen |
|||
By: Skrol29
Date: 2012-05-08
Time: 23:56
|
Re: Problem getting a Mergeblock to work with a PHP array I get a corrupted fileHi Allen,
This type of error typically happens when your PHP code output some text before you you call the Show() method. It produce a corrupted file. I suggest that you try the debug mode: http://www.tinybutstrong.com/plugins/opentbs/tbs_plugin_opentbs.html#debug |
|||
By: Allen
Date: 2012-05-09
Time: 04:33
|
Re: Problem getting a Mergeblock to work with a PHP array I get a corrupted fileThank you. It worked perfectly.
|