ramram Posted October 1, 2006 Share Posted October 1, 2006 I need help to set-up my MySQL database using phpI am trying to make a download.php which would let users to download files after 5 seconds. The only problem is that my /download directory has many sub directory. For example if someone wants to download FireFox, then firefox.exe is located in /download/FireFox/firefox.exeand I want somewhat like this www.domain.com/download.php?fileid=firefox.exe as an output URL to download. I know that I can use MySQL and setup a nice database to do something like this as long as fileid is unique.Any ideas on how to setup the MySQL database so that I can easily add multiple files from different sub directory at the same time.Thanks for reading the topic. Have a good one. Link to comment https://forums.phpfreaks.com/topic/22692-making-downloadphp-help/ Share on other sites More sharing options...
HuggieBear Posted October 1, 2006 Share Posted October 1, 2006 I guess in it's simplest format, you need a single table with three columns...[b]Downloads[/b]fileID - (int) unique/auto-incrementfileName - (varchar)filePath - (varchar)RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/22692-making-downloadphp-help/#findComment-102027 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.