schacke
Member
Isn't this the right way?
This is the calculation:
$db =& JFactory::getDBO();
$query = "SELECT logo FROM dkbb_invoice_info WHERE user = '{$my->id}'";
$db->setQuery($query);
$path = $db->loadResult();
return '<img src="' . $path . '" alt=" " />';
And this is what's returned in the html:
<img alt="" psykolog-kbh-aarhus.png","params":"{\"rotation\":0,\"scale\":100,\"imagedim\":{\"x\":200,\"y\":200,\"w\":128,\"h\":60},\"cropdim\":{\"w\":200,\"h\":100,\"x\":200,\"y\":200},\"crop\":false,\"quality\":0.9,\"mainimagedim\":{\"x\":200,\"y\":200,\"w\":128,\"h\":60}}"}]"="" user-logo\="" images\="" file":"\="" src="/[{">
This is the calculation:
$db =& JFactory::getDBO();
$query = "SELECT logo FROM dkbb_invoice_info WHERE user = '{$my->id}'";
$db->setQuery($query);
$path = $db->loadResult();
return '<img src="' . $path . '" alt=" " />';
And this is what's returned in the html:
<img alt="" psykolog-kbh-aarhus.png","params":"{\"rotation\":0,\"scale\":100,\"imagedim\":{\"x\":200,\"y\":200,\"w\":128,\"h\":60},\"cropdim\":{\"w\":200,\"h\":100,\"x\":200,\"y\":200},\"crop\":false,\"quality\":0.9,\"mainimagedim\":{\"x\":200,\"y\":200,\"w\":128,\"h\":60}}"}]"="" user-logo\="" images\="" file":"\="" src="/[{">