Ive got the following:
<actinic:block php="true" >
$ih = "<actinic:variable name="productimageheight">"; ////thats 240
$iw = "<actinic:variable name="ProductImageWidth" />"; /////thats 480
$ih = trim($ih); //remove trailing spaces
$iw = trim($iw);
$num = $ih/$iw;
echo $num;
</actinic:block>
and i get div 0 error....
if i echo $ih or $iw, i get their values correctly - i'm guessing they are still text so i tried (float)$ih and i tried (int)$ih but every time I get an error...
what stupid error am i making??
help pleeeease chaps/chapesses!
<actinic:block php="true" >
$ih = "<actinic:variable name="productimageheight">"; ////thats 240
$iw = "<actinic:variable name="ProductImageWidth" />"; /////thats 480
$ih = trim($ih); //remove trailing spaces
$iw = trim($iw);
$num = $ih/$iw;
echo $num;
</actinic:block>
and i get div 0 error....
if i echo $ih or $iw, i get their values correctly - i'm guessing they are still text so i tried (float)$ih and i tried (int)$ih but every time I get an error...
what stupid error am i making??
help pleeeease chaps/chapesses!
Comment