• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Auto Email on an event.

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Guys,
I would like to create send an autoemail as soon as the date in a table changes to system date.
What tools would I need to achieve this?
 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

send an autoemail as soon as the date in a table changes to system date



I don't know what you mean by this, I don't know what you mean by "date in a table changes to system date".

do you mean an html table or a table in a database? In any case, you could just have some kind of function that "listens" for the change in the table, and as soon as it does, you can either just call a .php page and email to someone using the mail() function OR you can use AJAX to do this with out a page refresh...

so basically you need AJAX and php or some other server script.
(well technically you don't need ajax).

most components in html have an "onchange" event handler. but if you want to catch a change in the database, thats a different story. you would have to have some script to keep checking that table for an update, I would think anyways.

Justin Fox
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic