CalcBuilder Forum

Results with images

Usuario alexanderich 2015-01-23 17:01:33

hi,

can i show two different images for 2 different results?
how can i do?


thanks

Moonsoft support 2015-01-23 19:00:21

Hi,
yes, there are several ways to achieve this. You can set at your code the image name depending on your results, for example:

if($result>50){

$imagename="image1.png";
}
else{
$imagename="image2.png";

}

so you will have available ##imagename## to print at your html output:


...img src="/imagesfolder/##imagename##"....


If you need more help with this, please open a ticket at helpdesk so we can share code.

Thanks, regards

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!