Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TCPDF / MYSQL / PRINTING UPTO 2 COLUMNS AND 2 ROWS PER PAGE AND BEYOND IF NEEDED..

Posted on 2011-03-17
2
Medium Priority
?
1,076 Views
Last Modified: 2012-05-11
I'm a pretty advanced programmer but lazy at figuring out new technology so you don't need to hold my hand, I just want an example.I have a mysql table named rx_queue with each row represent a prescription. The paper it is being printed on is 8x11 (standard letter size paper designed so upto 4 prescriptions can be printed at one time (the paper is preperforated, each prescription is 4.00x5.50 in size.

I need the code to look through each row and create the proper amount of columns and rows and pages (if beyond 4 prescriptions are queued)

The order doesn't matter... if there is 1 prescription or 4, a table with 2 rows and 2 columns 4.00x5.50 in size in each cell must be created. If there's only 1 prescription, the code should print the word VOID in the center of the unused columns.

If there is 13 prescriptions queued (just for arguments sake), the program will need to print 4 pages with the first three pages containing 4 prescriptions each and the 4th one only one prescription and the rest of the cell on that page must have the word VOID printed on it due to sate/federal law (self explanatory).

The prescriptions themself (what will go inside each cell--I will design myself, as long as the foundation is in place so the script works as needed.  Just note that in each cell I will be creating tables to properly format the data (table in a table--I intend to use tcpdf method or just plain writing html tables, please advise on this)

Thanks
0
Comment
Question by:VINEST
2 Comments
 
LVL 6

Accepted Solution

by:
ramelong earned 2000 total points
ID: 35162508
You described clearly this algorithm, but I did't understand your answer/need...
0
 

Author Comment

by:VINEST
ID: 35167499
Using tcpdf with PHP, I want to know how to create a borderless table that takes up the whole 8x11 page, having 4 cells (2 rows, 2 columns)

Then I need each cell filled with some example text
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question