Jump to content

document upload


searls03

Recommended Posts

file uploading is pretty straight forward, and theres plenty of scripts out there to use. it could be saved directly into the database as a blob (binary object) or just saved to the server, which is the method i use.

 

i would suggest the database table has an ID, event name, and image column, then when the form is submitd the file is uploaded (hopefully) successfully, then enter the event name and image filename into the database.

 

to later pull that image, use SQL to grabthe row from the database and echo the imagename inside an html img tag bit like below. dont forget paths to where the image is stored too

echo "<img src=\"" . $row['image'] . "\">";

Link to comment
https://forums.phpfreaks.com/topic/233285-document-upload/#findComment-1199748
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.