PHP Datatable rowspan and colspan [closed]

I need help to create colspan in datatables. Because HTML’s rowspan and colspan attribute are not working in datatables. In below code as you can see else part is creating a single column. and It’s creating issue as there is originally two columns. I want to merge 2 columns and display no records found message so the datable’s error message pop up can be remove.

<?php if(!empty($break_arr)) { 
    $breaks         = unserialize($break_arr);

    foreach ($breaks as $break) { ?>
        <td>
            <p><?php echo date("h:i:s A", $break['start']); ?> to <?php echo date("h:i:s A", $break['end']); ?></p>
        </td>
    <?php }
} else { ?>
    <td>
        <p><?php _e('No Break Record found.', 'wphrm'); ?></p>
    </td>    
<?php }

I have tried colspan from html but it’s not working. Does anyone have any idea about it?