I wish to place an image tag within a PHP array, dynamically fed from a database. The array will eventually render directly onto a page.
What is the correct syntax for the image tag within the array; i.e. once the array is rendered on a page, the image tag should show as an image and not as simple text.
Perhaps it might be easier if I show you what I mean:
foreach($rows as &$row)
{
$this->_rows[] = array(
'thumnail' => '<img style="width: 180px; height: 80px;" src="<?= THUMBNAILn_Assets::getProductThumbnail($row->id) ?>" />',
);
};
The image tag renders as simple text on the page, as opposed to an image.