hello i'm a newbie in php and i'm working in my project right now. i use mysql as my database and i'm using object oriented style of coding. my problem is that i don't have any idea of how to display image using object oriented style.. here is my codes:
<?php
$sql2="select id, name, item_price, item_size, item_color, picture, category, type from item ";
$result2 = $conn->query($sql2);
if ($result2) {
while ($row = $result2->fetch_row()) {
?>
<tr>
<td><?= $row[0]?></td>
<td><?= $row[1]?></td>
<td><?= $row[2]?></td>
<td><?= $row[3]?></td>
<td><?= $row[4]?></td>
<td><img src="data:image/png;base64,<?= $row[5]?>" alt="" /></td>
<td><?= $row[6]?></td>
<td><?= $row[7]?></td>
</tr>
<?php
}
}
?>
all column are able to display the data except the image does not working or not displaying image. any idea is appreciated.. i'm sorry about my English..