Hi guys,
Bit of a weird one – I have a php loop that spits out an image path from a database. I know I have to use bloginfo(“template_directory”) to display the image but I’m not sure how to exactly using my echo function. I need to some how combine that template directory php and the $row php…
The code I have is:
echo ‘<img src=”‘ . bloginfo(“template_directory”) . $row[‘itemimage’] . ‘”/>’;
But it of course displays that directory as a string. Any other way I configure it just creates an error.
Can anyone help me out at all? Thanks!