onthespot Posted July 22, 2009 Share Posted July 22, 2009 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 Link to comment https://forums.phpfreaks.com/topic/166962-images/ Share on other sites More sharing options...
dzelenika Posted July 22, 2009 Share Posted July 22, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.