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 9123665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:23:45+00:00 2026-06-17T06:23:45+00:00

I have three mysql tables; Users , Tasks and Task_Users , where each user

  • 0

I have three mysql tables; Users, Tasks and Task_Users, where each user can create their tasks through a web application I’m developing in PHP.

The thing is, I want my application to send an email to the users one day before the task occurs. The first thing that came to my mind was to do a MySQL job or trigger to send the email but I dont have an idea of how to do id,

What would be the best way make this happen or how could I call a job through PHP and execute it every day and verify that there is just one day left before the taks ocurrs and then if that is true send the email?

Here’s my table definition. Thanks in advance.

Users
----------
UserId,Names,email,pass

Tasks
------------
TaskId,TaskName,Descripcion,TaskDateTime

Tasks_Users
------------
TaskId,UserID
  • 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-06-17T06:23:47+00:00Added an answer on June 17, 2026 at 6:23 am

    You can write a CRON Job for this.

    What’s CRON Job ?

    Cron is the name of program that enables unix users to execute commands or
    scripts (groups of commands) automatically at a specified time/date. It is
    normally used for sys admin commands, like makewhatis, which builds a
    search database for the man -k command, or for running a backup script,
    but can be used for anything. A common use for it today is connecting to
    the internet and downloading your email.

    What do you have to do ?

    Just write a normal PHP script. make one that will work if it’s launched directly from the browser. Then schedule that very same PHP file to run in cron, using this as a guide:

    How to run a CRON Job after it’s written ?

    http://www.inmotionhosting.com/support/edu/cpanel/301-run-cron-job

    If you have any issues let me know.

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

Sidebar

Related Questions

I have three tables in a Mysql database - countries, cities and hotels. Their
I have three MySql tables: Users : UserId, UserName Tests : TestId, TestName Passes
I developed an application where the user can create tasks (like a an agenda,
I have three tables to define users: USER: user_id (int), username (varchar) USER_METADATA_FIELD: user_metadata_field_id
let's say I have three tables (MySQL), one for users, one for tags and
I have three different tables in my MySQL database. table users: (id, score, name)
I have three mysql tables items =========== id title items_in_categories ============================ id item_id category_id
I have three mysql table from same database Db1. Three tables have following columns.
I have three or four tables in a MySQL database associated with an upcoming
I'm using MySQL I have three tables: accounts { account_id, username } account_ips {

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.