Okay now lets make sure we are on the same page...
Where are you inserting any data? You must pass the data via {param} and {option}. Am I missing something?
For Example:
Code:
[QTABLE="{option}"]{param}[/QTABLE]
So in your case you need to pass a 'string' to your bbcode and 'carefully' parse / validate that string using PHP or JavaScript on the back end.
I will pass you some back-end code when your ready.
--------------- Added [DATE]1366942645[/DATE] at [TIME]1366942645[/TIME] ---------------
If your not familiar with what I am talking about. This is a nice little MOD that I have referred many people to by Cellarius. It is easy enough to write your own backend for bbcodes, but this is pretty useful for a structured setup.