FPDF Report Missing Records from MySQL Table

I have a FPDF report that selects and displays record data from a MySQL table. This is essentially written in PHP. The report omits a record from the table if the total number of records is an even number. As long as the total number of records is a odd number, then all records will display.

The problem stems from this line of code:

$col_count = (count($arr_datas))/2; //Divide the count to 2 get rows in each column

...that line is used to force FPDF to create two columns of record data. It does successfully create two columns, but it also forces an even number of rows, and since three (3) of the rows have place holder data, the remaining records of data must be an odd number. I need help resolving this so that _all_ records of data are displayed.

Skills: Database Programming, Javascript, MySQL, PHP, Software Architecture

See more: fpdf get data from database, fpdf invoice mysql, export data from mysql table to pdf file using php, how to fetch data from database in php and display in pdf, how to generate pdf file from dynamic data coming from mysql database in php, how to create table in pdf using php, how to retrieve data from database in pdf format using php, generate pdf from php data retrieve from mysql

About the Employer:
( 9 reviews ) Scottsdale, United States

Project ID: #18737863

Awarded to:


Hello there I can help you with this fix contact me !

$74 USD in 0 days
(61 Reviews)

13 freelancers are bidding on average $150 for this job


Give me access of the code and database so i can review whats the issue and plan for the fix to be done and work on it accordingly. discuss with me and let me know please. Individual PHP/MYSQL programmer here to help y More

$45 USD in 3 days
(351 Reviews)

Hi there, I have read your project description and i'm confident i can do this project for you perfectly.I still have a few questions. please leave a message on my chat so we can discuss the budget and deadline of the More

$155 USD in 3 days
(49 Reviews)

Hi. there. Thanks for your post. I have rich experienced in fpdf development. Please check my portfolio. If you choose me, I will satisfy you with good result. I will wait your response. Best regards.

$200 USD in 3 days
(98 Reviews)

Hey, i have years of experience with data managements. Can surely assist you see all records? Get in chat and we can discuss it over?

$155 USD in 3 days
(74 Reviews)

Hi. I read the description and I can understand the problem. I am senior php developer especially in FPDF development. I am sure I can complete the job definitely. Let's discuss details via chat. Best Regards.

$100 USD in 1 day
(93 Reviews)

Hello, I have gone through your job posting and become very much interested to work with you. I am an expert in this field. I have already completed several projects like this. For evidence you can see my profile. More

$250 USD in 4 days
(72 Reviews)

Hi Sir, 15+ years’ of experience in as a full stack developer by developing web based systems for banks and insurance industry. I'm a result-oriented, self-motivated an enthusiastic solutions developer. Gone More

$122 USD in 4 days
(57 Reviews)

Hello, I have read the details provided and i am positive i can provide quality work,please contact me to discuss more on the project deadline and some other few things

$200 USD in 3 days
(6 Reviews)

Hi, I am [login to view URL] with 12 years experience in web development. I think i can fixed your problem within 24 hours if you select me. Waiting eagerly for your response.

$77 USD in 3 days
(33 Reviews)

I DO NOT OUTSOURCE I have been a freelancer for the past 8 years, I believe that my experience and skill in this background will prove to be of great help to you. Contact me to discuss more on the details

$150 USD in 3 days
(3 Reviews)

Greetings , I propose single day long delivery over your task Please check the link below for some example of my FPDF development experience [login to view URL] [login to view URL] More

$200 USD in 1 day
(18 Reviews)

Hello Sir I am expert in website design and development . I can design custom themes, develop custom modules. I can configure and fix existing modules related issues as well. I will start work from now and complete More

$225 USD in 6 days
(1 Review)