Jump to content

Listing files along with description and image?


luigimia

Recommended Posts

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 :D

Link to comment
Share on other sites

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 :D

 

are you using a database to store this information?

a little more information on the subject would be helpful.

Link to comment
Share on other sites

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 :D

 

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!

Link to comment
Share on other sites

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 :D

 

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.