Skip to main content

Posts

Showing posts with the label avatars

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);