php - button for annual report -


I need to get an annual report in my system. How can I get an annual report once a year? Have a button that prepares the report but it should be only once in a year. Therefore, it should not be a button because it means that the report can be obtained more than once a year. Any suggestions? I am using php on the way.

You can consider creating tables in your database, whether or not they already have a flag View annual reports for a given year:

  Create table annual_port_view_id (ID INT (11) Unacled faucet AUTONCRR Primary key, DATETIME no tap default '0000-00 Saw-00 00:00: 00 ');  

After you first click on the user's button, you will want to enter date in the YYYY-MM-DD HH: II: SS format in this table.

You can then ask this table every time when the user is on the page whose annual report button is to compare the date using a variable:

  $ Date = date ('ymd h: i: s', strotomom ('- 1 year'));  

If a date in the table is more than the date received from this variable, then the button will not show because it is within the previous year.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -