witham Posted October 20, 2007 Share Posted October 20, 2007 I would like to please ask for some advice, I currently have a database that allows users to add, remove and amend data within it through a php form. I now would like to move on and add standard data including pdfs that users can select add oo and amend their data against. I think I need to use a file upload form and a php script to handle the data but I am not sure how I get tis information into and out of my mysql database? Quote Link to comment https://forums.phpfreaks.com/topic/74083-file-upload/ Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 Well in order to do pdf creation, just get an html->pdf class. It can be a little grueling trying to do full pdf creations from scratch. Quote Link to comment https://forums.phpfreaks.com/topic/74083-file-upload/#findComment-374003 Share on other sites More sharing options...
witham Posted October 20, 2007 Author Share Posted October 20, 2007 Thank very much for your rely! Sorry I was maybe not clear enough the pdfs are already created I need to include them in the database and render them as links when the user displays the page so that they can updated data against them. Quote Link to comment https://forums.phpfreaks.com/topic/74083-file-upload/#findComment-374014 Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 You don't want to do that. Save them inside a folder, and reference the "path" into the database. You shouldn't save "files" inside a database, it's not what it's for. Quote Link to comment https://forums.phpfreaks.com/topic/74083-file-upload/#findComment-374016 Share on other sites More sharing options...
witham Posted October 21, 2007 Author Share Posted October 21, 2007 Sorry for being a bit dim so what I do is create a file, write an html form to upload to it and the a php script to handle the file and put it into the directory. This done I reference the file path in mysql to render the files on the page! Quote Link to comment https://forums.phpfreaks.com/topic/74083-file-upload/#findComment-374709 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.