PHP user profile pictures / avatars

Status
Not open for further replies.

Sean

‫‫‫‫‫‫  ‫  Don't Worry, Be Happy
Dec 12, 2011
1,121
405
I have this user profile picture thing working fine, The image gets uploaded into a folder, and the link saved in database, so I can display that image on the users profile, But when they change the image by uploading a new one, It creates a new image with a new number on the end. I want it to override there old one,

each users profile picture is saved as there username.png and when they upload a new one it generates a random number username45.png
username37.png

Do you think that this is a good method, Or should I make it so it just replaces username.png with there new image,

HELP ME wow that thread is all over the place and makes little sense lol
 
Status
Not open for further replies.

Users who are viewing this thread

Top