Forum Moderators: coopster
Currently I work in a school and I wish to build a PHP/MySQL portal which allows teachers to enter student exam marks online through the portal.
The same site will provide reporting etc. and prints the result of each student on a separate page, which can then be sent by post.
In order to print the results I wish to create a print button (or something similar) which once pressed, extracts the individual student details from the Database and sends them directly to the printer without outputting anything on the screen. IS this possible with PHP?
Thanks and Regards
PHP Printer Functions [us3.php.net]
These functions are only available under Windows 9.x, ME, NT4 and 2000. They have been added in PHP 4.0.4.
Read the first comment on the linked page for a way to do it in *nix with lpr and a comment further down for how to do it with lp.