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

  • Home
  • SEARCH
  • 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 8735109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:58:44+00:00 2026-06-13T09:58:44+00:00

I have a mysql db that gets populated with the session info below called

  • 0

I have a mysql db that gets populated with the session info below called my_active_users

username    timestamp      email
MyName      1351121630     xxx@xxx.com

How can I send up a trigger to send a e-mail to the user when the session timestamp is over 90 min old?

I already have the mail.php set up to send the e-mail with the proper content just not sure how I would link or trigger the mail to be sent to the users who have not been active for 90 min.

Any help would be greatly appreciated.

  • 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-13T09:58:45+00:00Added an answer on June 13, 2026 at 9:58 am

    Agree with @nickb,

    Write a script (pseudo-code here):

    SELECT user, firstname, lastname, email
    from sometable 
    where timestamp > (current_time - 90mins) 
    

    Then personalise and send using your mail.php script.

    Where the crontab is concerned, I don’t know how much you know about it, but, you can either execute it via PHP or a service like wget (or lynx etc):

    PHP:

    */10 * * * * /usr/bin/php /path/to/script/script.php
    

    Or via URL request:

    */10 * * * * /usr/bin/wget -q -O http://www.domain.com/script.php > /dev/null
    

    Both of the above request every 10 minutes, but you can change to fit your requirements.

    Hope this helps.

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

Sidebar

Related Questions

I have a MySQL query that: gets data from three tables linked by unique
For example I have a mysql query that gets some data. Then runs another
We have a custom PHP/MySQL web application that gets updated and copied (using SFTP)
I have the following php code that gets a serialized array from a mysql
I have a .php file that queries a MySQL database and gets the value
I'm writing a simple php/mysql script that gets all ads I have in my
I have a textarea in html that gets saved to a mysql table using
I have a code in php/mysql that gets ids from the database. The ids
I have a selectmultiple choice widget that gets data from mysql database and displays
I have a simple jQuery/PHP autocomplete text box that gets the matches from mySQL.

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.