473,609 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to display loop in mpdf file in

1 New Member
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
1 2177
Dormilich
8,658 Recognized Expert Moderator Expert
that’s not an mPDF file.
Apr 8 '16 #2

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

Similar topics

5
2492
by: Victor | last post by:
Hi I need to open an html file from the file system and embed that html file within my main aspx form. I have 2 questions: 1) How do I open the html file? I tried the File.open(Path, mode) didnt work. 2) I would like to display the html file at a certain location in my main aspx page. How can I achieve this? I'm brain dead and I have to finish this tonight! Please help. Thanks
3
19560
by: Jenny | last post by:
Hi, I want to use a button to display a pdf file. I have Windows 2000 server, IE 6 and Acrobat 7 with plug-in. I can use <a> link to display it. I search this group for js code but they don't work. I tried this code: <form><input type="button" value="View PDF" onclick="window.location =
3
3886
by: jiayanxiang | last post by:
Is there any sample code to use Javascript to load and display a text file? It will be best if the user can select files using some kind of explorer. If that's complex, a text box to specify the file name will be fine as well. Once a text file is selected, I just need to display it in a text box. Thanks for the help.
3
2966
by: Chris Saunders | last post by:
May be a dumb question but I have been unable to find the answer on my own. I wish to display a help file (*.chm) can anyone help? I attempted using "displaying help file" as a search in MSDN but no found articles seemed to have what I wanted. Regards Chris Saunders
1
6418
by: msiddiqui | last post by:
Hi, I am Mahmood Alam Siddiqui please help me. i am facing some problem for display MS Word file in jsp so please have you any solution for this please send me at "msiddiqui@xavient.com" one thing more i wants to display ppt file also on JSP page then facing some problem if you have any idea then send me Regard's Mahmood Alam Siddiqui
11
3181
by: nickyeng | last post by:
I have a html file contains a form asking user to select a choice and press enter to pass the data to server. In server there, i have a cgi script(C language) that accepts the input from browser and then output a html page to browser. The browser should open the page, but it didn't, instead, it prompt me to save the file(.cgi file i requested in form method).... how that happens? i want to display the html file that the script output...
1
4570
by: 848lu | last post by:
PHP - display from txt file with explode function hi, i am trying to display all data from a txt file with a function of explode but does not work..... <? #reads a text file outputs it to screen $filename = "cdlist.txt"; $filepointer = fopen($filename,"r"); // open for read $cdArray = file ($filename);
9
2069
by: tomhawkins1 | last post by:
Hi I currently have a site where users can upload files. These files can be doc, wmv, jpeg, xls, dwf, dwf and dwg. These files are uploaded to /home/**user**/uploads and not /home/ **user**/public_html/uploads to prevent any old user from browsing them. I then use a general showDoc page with the following function (from
3
2837
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net app, in the page there is a scan activex which could scan and save a jpg file in client harddisk. How could we access and display this jpg file on the fly using js in the client IE? Thanks, -Billy zhang
4
5469
by: kkshansid | last post by:
what is the best way to display a word file on a php page in the same format as it is on word format ? word file has some very well diplay of data in tabular format php page has includes header,footer,left,right i want to display it in the middle but by simply copy pasting error it doesnt display in the same format
0
8065
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8524
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8210
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8394
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6990
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5507
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.