I am looking for a table generator based on div tag that can generate html code.
If you are trying to generate a table using only divs you are most likely either:
a) Trying to generate a layout without using tables
Probably needing to convert an existing table based layout to match the current attitude that "tables are bad".
In which case there is no generator to convert your existing table based layout. You'll need to do the hard work of converting things.
b) Trying to present tabular data using only divs
Despite the general wisdom of "tables are bad" it is important to realize that they do still serve a purpose. That purpose is to present tabular data, i.e. data that is most naturally displayed in table form. For that kind of data you should continue to use the table tag!
I don't know if that is really possible or wise. Converting a table, which was not intended for layout anyway, into a set of
<div> tags will result in the same messy, unmaintainable code.
You should learn HTML and CSS and then do it yourself manually. A grid system like 960.gs can help you keep things neat with columns and such.