Jump to content

Images!


onthespot

Recommended Posts

Hey guys.

Before I start just want to make it known I am not looking for someone to write code for me here.

What I am looking for is guidance on how to have a function on my site where the user can upload a profile picture.

 

Am I correct in assuming that the image is uploaded to a certain directory, and then the profile will just call on that.

Where does SQL come into it? And how would I ensure the images are only a certain size and that it replaces an old image if a new one is uploaded.

 

Just need some guidance please  :D

Link to comment
https://forums.phpfreaks.com/topic/166962-images/
Share on other sites

I suppose that every user has his record in users table.

After upload of image, you could give any name to your picture. It is important to write this name into users data(for example field image). For determining image size and eventually resizing you should use GD functions (for example getimagesize and imagecopyresampled)

Link to comment
https://forums.phpfreaks.com/topic/166962-images/#findComment-880282
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.