finding way to know if php page printed -ctrl p - and update in mysql
<p>Hello I have <code>php</code> website that is working like a system for accounting..</p>

<p>I have receipt, invoice etc.. </p>

<p>I have a problem in <code>mySQL</code> database main table I have in Main_table variable how_much_ printed and via <code>php</code> and <code>mySql</code> I need to update it. Every time that user does even ctrl P </p>

<p>How do I do that?</p>

<p>The reason is that in law I need to print on the first document that its source document.</p>

<p>I didn't find any way so I decided to block the printing with <code>css</code> and do printing web page separately - its looks ugly if someone can find way? </p>

<p>Thanks alot for help
Yan</p>