Jump to content

Photo Upload (Cms) Send Me In Right Direction


jessebirr

Recommended Posts

Hi, I'm new to php freaks and php in general. I'm working on a church website, i have most of of the CMS build already. I need help with one part though.

 

 

I need to upload photo to a database using php and mysql, this photo has to be displayed on the public site.

 

The table is already made using phpmyadmin,p

 

i have not typed any php for the photo upload form just the html.

 

can you point me in the right direction.

 

thanks

Link to comment
Share on other sites

Upload the image to the filesystem and then insert the file name into the DB like you would an ecommerce store? That way you can qiery the database for your image and get the correct filename for it to call it.

 

Or use the glob() function to return an array with all of the files in said directory, your images directory for example. How are you planning on displaying the image?

 

P.S. Welcome to the Forum!

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.