rawky1976 Posted January 26, 2007 Share Posted January 26, 2007 HelloI'm building a doument management site. Supposing I have a MySQL table with fields for document name and document description. An upload page copies the file via an upload script and file form control to a folder on the webserver (IIS).An SQL Insert command enters into the table above whatever name and description the user has given. Next a search results page displays information from the table in a dynamic repeating table. In this table I want the doument name entry to be a link to the document itself.Currently the user must enter the actual document name, including its file extension or the link will not function properly.Is there a better way to go about all this?Thanks, Mark Link to comment https://forums.phpfreaks.com/topic/35827-database-setup-for-eventual-page-linking/ Share on other sites More sharing options...
bibby Posted January 30, 2007 Share Posted January 30, 2007 Are you managing the file using the superglobal $_FILES , or is the script of another flavor?You could save the user some time by recalling $_FILES['[i]fieldname[/i]']['name'] Link to comment https://forums.phpfreaks.com/topic/35827-database-setup-for-eventual-page-linking/#findComment-172576 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.