Jump to content

Recommended Posts

I\'m not looking to directly send the images to the database because I don\'t want the database to get too large with data.

 

I would like to use the database to reference an image file on the server or hard drive and load the image (or images) using PHP code on a Browser.

 

I\'ve looked at every related post here and still didn\'t find what I was looking for. Or at least find a good step by step process.

 

Please! Give me a step by step process.

1) What would the PHP code look like that sends the reference to the database.

2) Perhaps example SQL code to show how the table parameters would look like that takes the reference.

3) What would the reference look like in the record once the record has been created.

2) How to call the the images in PHP code to be viewed in a browser. Do you request a path from the database?

 

Just a step by step process so idiots like me can get it straight.

 

Thanks,

Dick :?

Link to comment
https://forums.phpfreaks.com/topic/165-uploading-images-into-a-mysql-database/
Share on other sites

  • 4 years later...
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.