java - PHP image path different for every user -
hi ive run thought simple obstacle however, become quite hassle want display picture on website different every user logged in. tried
<img src="<?php echo 'screenshots/img_$username.png' ?>" />
i didnt think work im not sure go on 1 have java application saves images file on users computer uploads them server , saves them "img_someusername.png" username going different every person
how can user logged in see or picture , not else's profile picture on facebook?
try instead.
<img src="screenshots/img_<?php echo $username; ?>.png" />
Comments
Post a Comment