Hey, I've been trying to generate a pdf file using html2pdf library (http://html2pdf.fr/en/example). What I need to do is to print a table with PHP in that pdf file, so I stored the table in a variable called $contain with all html tags. My code goes this way:
1) It brings the information from the database with MySQL
2) It stores that information on a variable called $contain
$contain also contains html tags. So I can't find out what's wrong, the error is...
"Fatal error: Uncaught <span style="color: #AA0000; font-weight: bold;">ERREUR n°4</span><br>Fichier : D:\Web Design\EasyPHP-5.3.9\www\Tecni-RA\catalogopdf\html2pdf_class\parsingHtml.class.php<br>Ligne : 119<br><br>Code HTML non valide, les balises ne sont pas fermées dans le bon ordre.<br>Etat : <pre>Array ( [0] => page [1] => div [2] => table ) </pre><br><br>HTML : ...UE DISTRIBUIDOR X 10</caption></tbody><tbody><tr id='tablafoto'><td><i... thrown in D:\Web Design\EasyPHP-5.3.9\www\Tecni-RA\catalogopdf\html2pdf_class\parsingHtml.class.php on line 119"
Please if you could give me a piece of advice I'll apreciate it because I'm going crazy.
MarielaMontaldo 0 Newbie Poster
chrishea 182 Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.