Jump to content


Photo

send mysql table to printer


  • Please log in to reply
2 replies to this topic

#1 bryanptcs

bryanptcs

    Advanced Member

  • Members
  • PipPipPip
  • 49 posts

Posted 15 January 2007 - 02:59 PM

Is there any kind of code/function that will send a table from my db to the printer?

#2 Psycho

Psycho

    Advanced Member

  • Gurus
  • 10,778 posts
  • LocationCanada

Posted 15 January 2007 - 03:17 PM

Directly? Not that I know of. You would need to do a query for the records you want and format it into an HTML page or into an export file (txt, excel, etc.). If you have phpmyadmin you can easily export the data from a table into a few different formats that can be easily printed. Otherwise, creating your own script would be very easy to do.
The quality of the responses received is directly proportional to the quality of the question asked.

I do not always test the code I provide, so there may be some syntax errors. In 99% of all cases I found the solution to your problem here: http://www.php.net

#3 charlieholder

charlieholder

    Advanced Member

  • Members
  • PipPipPip
  • 1,405 posts
  • LocationAtlanta, GA

Posted 15 January 2007 - 03:20 PM

Agreed.
Links: PHP Manual | MySQL Reserved Words

Please mark TOPIC SOLVED when you've reached a solution.
Adding [code][/code] tags around your code increases your chances of receiving help.

I don't always test the code I write.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com