luigimia Posted January 14, 2012 Share Posted January 14, 2012 Hi. I'm making a website where users can upload files along with title, description and image. I can get them making the page (str replace) but I only know how to list the files with just the file title in a basic links directory. Any ideas how I could include title, description and a picture (as well as the link to the page). Sort of like with Youtube search results or engine001.com/games.htm? Any help would be greatly appreciated. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/255035-listing-files-along-with-description-and-image/ Share on other sites More sharing options...
AyKay47 Posted January 14, 2012 Share Posted January 14, 2012 Hi. I'm making a website where users can upload files along with title, description and image. I can get them making the page (str replace) but I only know how to list the files with just the file title in a basic links directory. Any ideas how I could include title, description and a picture (as well as the link to the page). Sort of like with Youtube search results or engine001.com/games.htm? Any help would be greatly appreciated. Thanks are you using a database to store this information? a little more information on the subject would be helpful. Quote Link to comment https://forums.phpfreaks.com/topic/255035-listing-files-along-with-description-and-image/#findComment-1307710 Share on other sites More sharing options...
luigimia Posted January 14, 2012 Author Share Posted January 14, 2012 Hi. I'm making a website where users can upload files along with title, description and image. I can get them making the page (str replace) but I only know how to list the files with just the file title in a basic links directory. Any ideas how I could include title, description and a picture (as well as the link to the page). Sort of like with Youtube search results or engine001.com/games.htm? Any help would be greatly appreciated. Thanks are you using a database to store this information? a little more information on the subject would be helpful. I'm not. Basically I have a file upload page and on that page there's the title, description, image and file fields. When a user clicks submit a second page, process.php, uploads the file and image and puts the file into the files directory, the image into the pictures directory. Then, using a default template and str replace, the description, title and username are filled out. The picture is sourced from the picture directory and the download link from the files directory (again using str_replace). Although I do have a MySQL for the users I'm not using a database for the files. Only the three php pages, upload, process and template. Any ideas? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/255035-listing-files-along-with-description-and-image/#findComment-1307713 Share on other sites More sharing options...
AyKay47 Posted January 14, 2012 Share Posted January 14, 2012 Hi. I'm making a website where users can upload files along with title, description and image. I can get them making the page (str replace) but I only know how to list the files with just the file title in a basic links directory. Any ideas how I could include title, description and a picture (as well as the link to the page). Sort of like with Youtube search results or engine001.com/games.htm? Any help would be greatly appreciated. Thanks are you using a database to store this information? a little more information on the subject would be helpful. I'm not. Basically I have a file upload page and on that page there's the title, description, image and file fields. When a user clicks submit a second page, process.php, uploads the file and image and puts the file into the files directory, the image into the pictures directory. Then, using a default template and str replace, the description, title and username are filled out. The picture is sourced from the picture directory and the download link from the files directory (again using str_replace). Although I do have a MySQL for the users I'm not using a database for the files. Only the three php pages, upload, process and template. Any ideas? Thanks! the most efficient way to do this is by using a database in combination with some AJAX to store the necessary data into a table, and use the table to display the information to the user. If you aren't using a database for this, how are you storing the files description, name, and title for later viewing? Quote Link to comment https://forums.phpfreaks.com/topic/255035-listing-files-along-with-description-and-image/#findComment-1307715 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.