How to combine or merge cells, using php-codeigniter
How to combine or merge cells, using php-codeigniter
Hello, im using codeigniter and php to create this table.
im using collapse from bootstrap to view childrow like datatable can do. but i dont understand to use js, so im using only php here. the childrow is a new row with only 1 td, and that causing error
is there any solution to make childrow using only php?
from what i know, if you want to merge cells in php you only create 1 td with colspan=12, but datatable not allowing that..
here is when im creating the td with no value
here is when im deleting the td and causing errors
and the attachment file is the code that i wrote
This question has accepted answers - jump to:
Answers
Yep, child rows are controlled by
row().child()
, so they would need to be in JavaScript, that can't be created in PHP outside of the table.Colin
@colin hello colin thanks for answering my question.
ive another question, how to get the data with javascript? i dont really understand javascript..
You can get the data with several methods, such as
data()
row().data()
rows().data()
cell().data()
cells().data()
column().data()
columns().data()
Colin
@colin okay thank you colin. can i pass php code and html code on that row table?
You can pass anything, but you won't be able to run PHP on the client (the browser),
Colin