Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6819515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:18:56+00:00 2026-05-26T21:18:56+00:00

DueDate Table structure my query here is how to check automatically in php that

  • 0

DueDate Table structure

enter image description here

my query here is how to check automatically in php that a user has 15 days prior from the table and inform a user that he has got 15 days more left to pay his amount.
15 days from the dueDate as shown in the table

so if the user due date is 2011-11-17 he has to be informed 15 day prior that is on 2011-11-02

how to achieve this using php to inform automatically ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:18:57+00:00Added an answer on May 26, 2026 at 9:18 pm

    You need a script run by CRON scheduled daily, probably on 00:01am every day.

    You have to create a cron tab file, a plain text file and load it on your server. A cron tab file look like this

    1 0 * * * php /path/to/your/script.php

    Above file will run script.php on 00:01 am daily.

    Reference/tutorial: http://adminschoice.com/crontab-quick-reference

    In script.php, you do the 15 days look-up thingy.

    Details…

    There should be a CRON editor on your server’s cpanel. You might not even need to write your own cron tab file, they usually have a GUI editor. If not 1 0 * * * php /path/to/your/script.php is your only content.

    1 0 * * * means run the following command every day at 00:01am.
    php means execute the following PHP file and
    /path/to/your/script.php specifies which PHP file to run.

    Remember that path mush be absolute path starting from the root of your server because CRON is not the same as running on web environment.

    On script.php, you do the query (see other answers), get the list of people who are 15 days away from their due date and do the notification.

    You can test your script.php by running directly from web browser before putting it into cron too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using MySQL and I have a table that has dates in a column
I'm trying to create a sub-query to obtain the latest date from a table,
I have a table that have tasks that have a duedate (to be completed
I'm have little problem in retrieving the data from a table here's the code:
Let's say I have two dates in my table, DueDate and PaidDate. What I
How can I get records from my table using month/year? I have a table
So, I need some code help. I've got an awkward little MySQL table that
I have a database that logs when an employee has attended a course and
I have a table called Task which has, among others, two columns: Date_due: a
I have a script which returns 5 columns from a php result. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.