General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 1st, 2004, 01:41 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Red face Help with delete file

I am trying to delete a file (or several) using a form. I can see the files in the folders on server. I can upload new files through forms, but I need an easy to delete files. Users have access to only thier upload folders and can link and use files in thier folder (images, pdf. , etc.) , not they need a way to clean house.

In my books I can find scripts to delete a file, but does anyone have one that is handy? My users are your run-of-the-mill point and click type. I try not to have them type file names too often.


Another quick question: Through forms, I have users editing data from the database, but data input through dropdown menus always comes back from the db with the first choice picked. How do I have the data returned with the choice in the db highlighted? Text data from a text box comes back for editing fine, but radio button, dropdown, check box, etc. don't hold their value.

Thank you.
It's been close to a year since I've been around. My scripts have been working okay, so I haven't had to drop in. I sure appreciate everyones help.
lbd
__________________
bow wow!

Reply With Quote
  #2  
Old April 1st, 2004, 05:23 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 5
Send a message via MSN to Pheifel
well... a way to do the delete function, is to give all the useruploads an userid, and then simply make a DELETE FROM DB WHERE userid = $USERID. That should do the job.

And about the dropdown. You can make a temperary variable, that is set by the userchoise, that is then used to dertermin the id of the row that should be printet in the dropdown from the db

- Pheifel

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Help with delete file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT