I've an array that gives me an image blob in the 3rd dimension.
but I need the image, i tried with SQL
<?php $global = \Database::getInstance()->execute('SELECT CONVERT(VarChar(40), image)
FROM mm_product2
WHERE id = '.$referenzen['id'])->fetchAllAssoc(); ?>
<?php print_r($global);?>
It show this error:
Fatal error: Uncaught exception Exception with message Query error:
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near 'VarChar(40),
image) FROM mm_product2 WHERE id = 23' at line 1 (SELECT CONVERT(VarChar(40),
image) FROM mm_product2 WHERE id = 23
without the expressions it works but i get that blob value again like in the standard array:
[image] => 85392c33-a0f7-11e4-acb9-08606e695836 )
May I know how to convert that value in PHP or only in SQL ??