Hi, i want to show array values in table. Values are stored in Database with the help of base64_encode(serialize()). But problem is i can’t show them all values in data with while loop.
How it could be done?`
<?php
$select = "SELECT * FROM `sayamArray` WHERE sno = 1";
$resu = mysqli_query($conn, $select);
$dataa = mysqli_fetch_assoc($resu);
$get_names = $dataa['names'];
$get_names = unserialize(base64_decode($get_names));
$length = count($get_names);
$i = 0;
while($i < $length){
?>
<table style="width:100%">
<tr>
<th>Names</th>
<th>Delete</th>
</tr>
<tr>
<td><?php echo $get_names; ?></td>
<td>Delete</td>
</tr>
</table>
<?php
}
?>