423,336 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,336 IT Pros & Developers. It's quick & easy.

how to display loop in mpdf file in

P: 1
Expand|Select|Wrap|Line Numbers
  1. <td height="43" align="center" width="32%" style="background-color:#E1E2D8; border-right:1px solid #AEB9C2; border-bottom:1px solid #AEB9C2; border-left:1px solid #34546E; font-size:12px"><strong>Year</strong></td>
  2.     <td align="center" width="35%" style="background-color:#E1E2D8; border-right:1px solid #AEB9C2; border-bottom:1px solid #AEB9C2; font-size:12px"><strong>Age</strong></td>
  3.     <td align="center" width="35%" style="background-color:#E1E2D8; border-right:1px solid #608AAC; border-bottom:1px solid #AEB9C2; font-size:12px"><strong>Age</strong></td>  </tr>';
  4.  
  5.    for($i=0; $i<10; $i++)
  6.     { 
  7.     print_r $no == 1; 
  8.    $html.='<tr>
  9.    <td style="border-bottom:1px solid #d1d1d1; border-left:1px solid #34546E; border-right:1px solid #d1d1d1;" height="35" ><div align="center">'.$i + 2016.'</div></td>
  10.   <td style="border-bottom:1px solid #d1d1d1; border-right:1px solid #d1d1d1;"><div align="center">'.$z1 = $i + $diff1.'</div></td>
  11.      <td style="border-bottom:1px solid #d1d1d1; border-right:1px solid #608AAC;"><div align="center">'.$z2 = $i + $diff2.'</div></td>
  12.   </tr>';
  13.           }
  14.  
  15.  
  16.  $html1 .= '</table>
Apr 7 '16 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
thatís not an mPDF file.
Apr 8 '16 #2

Post your reply

Sign in to post your reply or Sign up for a free account.