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
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
Share on other sites

you know even if your file is on another server, you can call it with a file_get_contents(),copy() or most of the other commands depending on how you have yours servers set up. This is how you gram images from the net - then you can process it.
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.