Results 1 to 4 of 4

Thread: Need a script

  1. #1

    Thread Starter
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459

    Need a script

    Hello,

    I have a database in which i am entering dates in my own format i.e: dd-mm-yyyy instead of using unix timestamp. Anyways i want a ascript which would keep on checking :

    if the date in db is coming after 10 days then it should send an email
    if the date in db is coming after 7 days then it should send an email
    and from the 7th day onwards it should keep on sending emails every day till the date is matched with real date.

    Please let me know if i have explained this properly.

    Thanks
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

  2. #2

    Thread Starter
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459

    Re: Need a script

    Hi,

    Can anyone help me with this ?

    Thanks
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Need a script

    What have you got so far? - I don't have the time to write you an entire script and by the looks of things it doesn't appear as if other people do either.

    Have a look at this thread which shows a query which uses some of the MySql date/time functions to calculate the number of days until someones birthday. You can probably adapt this to your own script:

    https://www.vbforums.com/showthread.php?t=333108

    Have a go at coding it yourself and if you run into any problems just post here
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4

    Thread Starter
    Hyperactive Member AvisSoft's Avatar
    Join Date
    Sep 2002
    Location
    Chandigarh
    Posts
    459

    Re: Need a script

    Hi,

    LOL very correct that i should do something first, actually i tried but wa snot successfull with sql query that is why i posted here...but lookign at that thread yo gave i think it will work as the guy in that thread is also using the same date format like i am.

    I will post again incase i face any problem

    Thanks
    Tapan Bhanot,
    CEO, Avis Software.
    Website: www.avissoftware.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width