Click here to Skip to main content
15,924,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello i have php website that is workind like system for acounting..

i have receipt, invoice etc..

i have a problem in mySQL data base main table i have in Main_table variable how_much_ printed and via php and mySql i need to update it ! every time that user does even ctrl P

how do i do that ?

the caus is that in law i need to print on thefirst document that its source document..

i didn"t find any way so I decided to block the printing with css and do printing web page seperatly - its looks ugly if someone can find way ?

Thanks alot for help
Yan

What I have tried:

i tried to search internet..

i builded sepered page with id of the document to update and it looks bad
Posted
Updated 5-Sep-16 21:14pm
v2

1 solution

If you just want to update when user Press ctrl+p then use jquery or JS key press events
and then manke ajax call to server for updating Table but you wont be able to know whether report was actually printed or not
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900