Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Auto Delete Table Info from demo

NYColtNYColt Posts: 1Member
Can anyone tell me if there is a way for me to, every few hours or once or twice a day automatically delete information, photos, etc that customers may add to my demo program using a mysql database that I have on my site.

Any help would be great.

Thanks
NYColt

Comments

  • JonathanJonathan Posts: 2,914Member
    : Can anyone tell me if there is a way for me to, every few hours or
    : once or twice a day automatically delete information, photos, etc
    : that customers may add to my demo program using a mysql database
    : that I have on my site.

    Hmmm...I'm not certain if MySQL has a tool itself to do this, but you can always write a script in your favorite scripting language that connects to the database and runs queries to do the required deletion. Then add that script to your cron tab to get it to be executed automatically. Should work a treat. :-)

    Jonathan


    -------------------------------------------
    Count your downloads:
    http://www.downloadcounter.com/
    And host your site:
    http://www.incrahost.com/
    Don't say I never give you anything... ;-)

Sign In or Register to comment.