Psygno February 2016

print currency symbol near a database fetch number

If I have a price field on mysql table, with a decimal number, and I fetch the entire row to view it in a table (via Codeigniter 3 with the:

 <?php echo $this->table->generate($query); ?> 

method ).

How can I add the € symbol near the decimal number?

Answers


Vasim Vanzara February 2016

You can print it easily,using '&euro;',

 <?php echo '&euro;';echo $this->table->generate($query); ?> 

Post Status

Asked in February 2016
Viewed 3,819 times
Voted 10
Answered 1 times

Search




Leave an answer