function get_avatar($id){
$mysqli = connectDB();
$avatar_get = $mysqli->query("SELECT `avatar` FROM `users` WHERE `id`='$id'");
$line = $result_set->fetch_assoc();
closeDB($mysqli);
return $line["avatar"];
}
помогите плииз :)
function get_avatar($id){
$mysqli = connectDB();
$avatar_get = $mysqli->query("SELECT `avatar` FROM `users` WHERE `id`='$id'");
$line = $result_set->fetch_assoc();
closeDB($mysqli);
return $line["avatar"];
}