Welcome Guest, Not a member yet? Register   Sign In
how to add 2 row data in mpdf
#3

Looking at single quotes and dots, looks like you are putting together a string for HTML, correct?

In that case this should work:
PHP Code:
$html '<td align="center"><h3>'.($row_dummy['remun']+$row_dummy['lum']).' </h3></td>'

You can also pre-calculate everything in model or controller and then just echo new $row_dummy['total'] in view, saves moving logic to view files, might be a bit tidier that way.
Reply


Messages In This Thread
how to add 2 row data in mpdf - by kvanaraj - 10-12-2018, 10:29 PM
RE: how to add 2 row data in mpdf - by Leo - 10-12-2018, 11:38 PM
RE: how to add 2 row data in mpdf - by Pertti - 10-13-2018, 02:29 AM
RE: how to add 2 row data in mpdf - by kvanaraj - 10-13-2018, 03:27 AM
RE: how to add 2 row data in mpdf - by php_rocs - 10-14-2018, 12:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB