format .xml - percentage change, class green and red -



format .xml - percentage change, class green and red -

i have little problem. import percentage alter companies .xml format file.

how can create function: - if percentage alter not "-" add together class="green" - if "-" add together class ="red"?

my code:

<?php print $percentagechange; ?>

result:

example: -2,50%

xml format percentage

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -