Hello:
I have a database listing and would like to have a button available to print it.
Thanks
I take it you're not referring to php's print() function, but rather how someone can click a link and have a prompt to print?
If so, you'd need to use javascript. This should do the trick
<a href="javascript:window.print();">Print</a>
Cgraz
geeese
That was quick. I posted it seconds ago.
THANK YOU
is it possible to have a print to file, example text file?
you mean write to a text file on the server? If so, then yes. Search the forum for code examples, and have a look at fwrite(). That link will take you to the PHP.net documentation for the function and is loaded with user comments to help you out.