<table style="width: 600px" class="slicedTable">
<tr>
<th>Spetsialist</th>
<th>Tunnid</th>
</tr>
<tr>
<?php foreach($specs as $specName => $spec): ?>
<td><?php echo $specName?>
<tr>
<?php endforeach; ?>
<td>
<?php foreach($tunnid as $tund): ?>
<td><?php echo $tund?></td>
</td>
<?php endforeach; ?>
</tr>
</table>
I need this to print out a regular table where it goes like:
name 1 - value1
name2 - value2
Specs:
$specs = array();
foreach($data as $row) {
$workerName = $row['Worker']['name'];
if (!isset($specs[$workerName])) {
$specs[$workerName] = array('procs' => array(), 'extras' => array());
}
However I can't seem to accomplish this, help please.
$specthe "name" and$tundthe "value"?