Search Cerebrotech Blog

Saturday 24 June 2017

PHP, MySQL and PDF

After about a year of perfecting the invoicing process of Cerebro Technologies, we decided to automate it. Some people might ask, why not automate it from the onset? The answer is quite technical. When you have a bad process and you automate it, you invariably have a bad automated process and that can spell Disaster!

After getting the MySQL tables (entities) and their relationships, we wanted to export the report/invoice in PDF. There are about four PDF libraries that can work with PHP


  1. FPDF
  2. TCPDF
  3. mPDF
  4. DOMPDF
After reviewing these libraries, we opted for FPDF. Due to the fact that there were lots of tables relating with each other, we had to develop very complex MySQL queries to interact with the database and output the results in a neat format. The FPDF has a lot of useful functions that can help with this task. 

With patience and tenacity, the project was completed in 2 days!

3 comments:

  1. Moi Qatar and all this type of information you can check form the giving article link.

    ReplyDelete
  2. This has actually unlocked a door to the future of ahead for} sports gambling and the recognition of online gambling apps. There is hope that online and mobile gambling could quickly see the same kind of expansion that legal online sports betting has enjoyed. Six extra states are currently seeking to add legal mobile on line casino gaming. The submit COVID-19 period will supply exciting opportunities for mobile gambling. 솔 카지노 As mobile devices help advances options and are simple to function, mobile gambling is an enticing choice for avid gamers.

    ReplyDelete