Custom data-th in td
-
Hello. I want to do this
echo '<tbody>'; foreach ( $table['body'] as $tr ) { echo '<tr>'; foreach ( $tr as $td ) { echo '<td data-th="'. $th['c'] .'">'; echo $td['c']; echo '</td>'; } echo '</tr>'; } echo '</tbody>';
but in data-th insert only last value (on screenshot)
https://gyazo.com/ce63648e82da602feee88faf4a5d2b0cCan you help me fixed this problem?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom data-th in td’ is closed to new replies.