when i run the below code it shows output as encrypted symbols like this [[�ѥ����1}j�i�Ƥ�^i�췼ܨ5���l�r�Ejק�r:��}=��""]�Q[n�C6���ZVv{����!���Y�j��>|�2��o��#\�T���hz`��d�vnW�KF���ih�ҍz�2����]
i have more than 5 images in the database.
post your suggestions
define('MYSQL_ASSOC',MYSQLI_ASSOC);
error_reporting(E_ALL);
$db = mysqli_connect("localhost", "root", "","phpapi");
$query = "SELECT image FROM images";
$result = mysqli_query($db,$query);
$num =mysqli_num_rows($result);
while($row = mysqli_fetch_array($result, MYSQL_ASSOC))
{
echo "<img src=\"$row[image]\" alt=\"img\" />";
}
?>