Jump to content

PHP form & MySQL


helppy

Recommended Posts

I have a form that has a field and a button browse.

I will click on the browse button to search for the image (in the computer) that i want, then I will click submit and it will store into my database.

However what is stored in the database is the address (location of the image: eg C:\myimage.jpg).

I don't the address to be stored but really the image itself.

Help!!!
Link to comment
https://forums.phpfreaks.com/topic/29623-php-form-mysql/
Share on other sites

ok. noted.

So if i store it as a path in the database, how to i retrieve the image.

I want to use computer 1 to upload the image. Next, I will then use computer 2 to view the image. How do i retrieve it from the database the image's address/path then display out the image in computer 2?

Need some help in codes.

Thanks.
Link to comment
https://forums.phpfreaks.com/topic/29623-php-form-mysql/#findComment-135935
Share on other sites

you can store images in databases but its not really that good. but do what drifter is saying, upload the file to your server (if you dont want to then go for the storing in database) then in you db add the link to where the file was uploaded...
Link to comment
https://forums.phpfreaks.com/topic/29623-php-form-mysql/#findComment-135951
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.