Login  Register

Re: reset number after each month

Posted by ErmanArslansOracleBlog on May 17, 2017; 12:34pm
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/reset-number-after-each-month-tp2706p2712.html

if you want your n variable to not get initialized even after you disconnect from the server, then you need to modify the script, the design of it.. You need to store the value of $n in a file and read it in your script before setting a value to it.

Also, I guess you want your $n should be reset to 1, when the day changed. So you have to write a "if" for it as well.