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