I need to put tables in my datatable, but it doesn't look like datatables likes it. Does anyone know how I can get the functionality I need? I tried putting in divs that look like tables instead of tables, but it still broke. I think because the tr only has one td.
My code:
foreach($campaigns as $campaign):?>
<tr>
<td><?php echo $campaign['name']?></td>
<td><?php echo date('m/d/Y', strtotime($campaign['created_date']))?></td>
<td><?php echo $campaign['country_id']?></td>
<td><?php echo $campaign['domain_getter_type']?></td>
<td><?php echo $campaign['domain_metrics']?> <?php echo $campaign['metric_filter_setting_id']?></td>
<td><?php echo $campaign['domain_contact']?></td>
<td>0</td>
</tr>
<!--campaign runs-->
<tr>
<td colspan="99">
<table>
<thead>
<tr>
<th>dfad</th>
<th>t3wtaw3 On</th>
<th>dfw</th>
<th>Domain dawfd</th>
<th>p3p3</th>
</tr>
</thead>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
</table>
</td>
</tr>
<?php endforeach;?>
After each row of data, I want to put a hidden table you can show or hide, that holds additional information about each specific run of that campaign.
I get this error in chrome: Uncaught TypeError: Cannot read property 'className' of undefined