mysql - Formatting of Table in JavaScript & Repeat table -
i have view in mysql workbench , getting info .js file this:
$('#table_div').append('<table id="overview" border="1" class="compact" cellspacing="0" width="100%"><thead><tr><th>customer</th><th>program name</th><th>vehicle model</th><th>cbu</th><th>plm step</th><</tr></tfoot></table>'); var mytable = $('#overview').datatable({ "ajax": { "url": "php/ops_rfq_global_php.php", "type": "post", "data": { "filtera": filtera, //"filter": filter // nach plm steps } }, "columns": [ { "data": "customer" }, // 1customer { "data": "program_name" }, //2program { "data": "vehicle_model"}, //3vehicle model { "data": "cbu"}, //4cbu { "data": "plm_step"}, // 5rfi/rfq ], });
this give me 1 table elements see.
client | programme name | vehicle model | cbu | plm step ___________________________________________________________ 1. audi | abc | a2 | cbuaudi| 1 2. bmw | 123 | x5 | cbubmw | 1
but have
customer audi programme name abc vehicle model a2 cbu cbu audi plm step 1
.... , 1 time again kind of table each record in dataset.
how possible javascript?
a link find help nice.
javascript mysql sql
No comments:
Post a Comment