query($sql); $row = $result->fetch_assoc(); ?>
'; // Check if the avatar is SVG if (strpos($row['avatar'], ''; } else { // For JPEG, PNG, etc. echo 'Avatar'; } echo '
'; } else { // Display a default avatar if none is found echo '
'; echo ''; echo '
'; } ?>