I'm wanna to add hyperlink on every emails and phone numbers that appear in the table like shown below
This is the code that I'm writing right now.
<tbody>
<?php
$grand_total_amount = 0;
foreach ($processed_sales as $key => $sale):
?>
<tr class="sale" data-id="<?= $sale['id']; ?>">
<td><?= $pagination->offset + $key + 1; ?></td>
<?php
foreach ($columns as $key => $value):
if ($checked_columns[$key]):
?>
<td><?= $sale[$key]; ?>
<a href="../Jualan.php?email=<?php echo $value['email']; ?>" class="style1"><?php echo $value['email']; ?></a></td>
<?php
endif;
endforeach;
?>
</tr>
<?php
$grand_total_amount = bcadd($grand_total_amount, $sale['total_amount'], 2);
endforeach;
?>
</tbody>
I only want the data in column email and phone number to have hyperlink that will direct them to other pages.