Showing posts with label avatars. Show all posts
Showing posts with label avatars. Show all posts

Wednesday, May 9, 2012

PHP unlink function


This is the code




$query = mysql_query("SELECT avatar FROM users WHERE UserID = ".$userID."");
$row = mysql_fetch_array($query);
$user_avatar = trim($row['avatar']);
unlink($user_avatar);