Jump to content

Recommended Posts

Hi All

 

I was wondering if anyone could point me in the direction of of a good upload and display PHP MYSQL code.

 

I would like the user to upload there image to a folder on the server and then mysql to store the path only..... not store the image in the DB..... only the path to the folder.

 

I would then like the image to be displayed in the users comment post kind of like what the image button on this form does.

 

Would anyone know where I could get this code?

 

Many thanks

Link to comment
https://forums.phpfreaks.com/topic/182136-solved-upload-display-image/
Share on other sites

however the question still stands how do you upload without

putting the image into the database just the file path

By storing the name of the uploaded file into a database field in VARCHAR format instead of using BLOB type. The second example I get in the google result page shows exactly that.

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.