How to count the date from one period to one period. For example, 12-MAY-2003 to 4-Jun-2003, what language should I use and how?
Thank you for your help.
# The first strtotime() is the most current date
# The second strtotime() is the past date
$old = floor((strtotime('4-Jun-2003') - strtotime('12-May-2003')) / 86400); # The days counted from 4-Jun-2003 to 12-May-2003
Not sure if I know what your saying but yes you can copy this code into the PHP.
A little bit more info on what it's doing. strtotime is turning that date into unix timestamp. And if you want how many days between now and a past date then the first strtotime would be replaced with time().
Oracle is a database system, this is just plain PHP. If you want to store that information in a database then you'll have to figure out the Oracle connection parameters and such.