Reply
Please Help me
Old 07-27-2004, 03:25 AM Please Help me
Novice Talker

Posts: 7
Sir How can i automaticaly delete posts through coding in asp pages which are posted 1 week ago?
Arshad is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-15-2004, 03:27 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Well, are the posts in a database? If so then how do you have the time set?
__________________
CYTech-services.com - 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 08-26-2004, 12:08 PM
melfan's Avatar
Skilled Talker

Posts: 90
@Arshad - this is simple in ASP. just create a page that have the delete function like:

cmd.Execute "DELETE FROM tblPosts WHERE (DatePosted-GetDate())>=7"

Then run the page in your CRON jobs. If you dont have a CRON application you can create a fake CRON by inserting the above code on your login page so that the script will run every login or you can set one time per day.
melfan is offline
Reply With Quote
View Public Profile Visit melfan's homepage!
 
Reply     « Reply to Please Help me
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12937 seconds with 12 queries