Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reporting mysql view using php

Status
Not open for further replies.

compudude86

IS-IT--Management
Jun 1, 2006
46
0
0
i want to make a report, that would print to 8x11 landscape, in a standard html table, using mysql as the source. how would i do this?
 
+ connect to the database server
+ select the database
+ run the query to get a recordset
+ iterate through the recordset using a while loop and
inside the loop, echo the appropriate table tags with the content you want.
+ use css to control the table size and cell size.

you cannot, in php, cause the browser to print in landscape and you cannot rotate the table in php without converting it first to an image.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top