This is a discussion on "Limiting Users Files in a Database..." within the Classic ASP section. This forum, and the thread "Limiting Users Files in a Database... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Limiting Users Files in a Database...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Limiting Users Files in a Database...
I need to know how to upload files into a database. What I want to do is have where every member gets 10 files, 5 pictures and 5 songs. I don't know how to go about doing this and any help is much appreciated.
|
|
|
|
|||
|
Quite simply - Don't!
Don't store files in databases! It makes your databases a lot bigger when there's no need to do it. Instead, store the path to the image and use that, along with a count to do whatever it is you need to do... |
|
||||
|
Unless you pictures, song or files need captions, or some other metadata, then you wont even need to involve a database.
have 3 folders, pictures, files, songs. inside each folder have a foldername equal to the unique id or username. then using the filesystemobject, only allow 5 files in each folder.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| limiting, users, files, database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Limiting While Loops | Weird1993 | Databases | 5 | Jul 12th, 2007 04:33 |
| Limiting a while loop? | Weird1993 | Databases | 1 | May 10th, 2007 19:51 |
| uploading multiple files path in the database | franknu | PHP Forum | 4 | Jan 23rd, 2007 15:37 |
| users online, users loggedin | benbacardi | PHP Forum | 3 | Jul 5th, 2005 22:14 |