Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am new in drupal.
How to display in user's profile photo in user's profile page.. i add a new block and i give the below php code in a block. but, I'm not get the user's photo.
<?php
$result = db_fetch_object(db_query("select picture from users where uid=%d", arg(1)));
?>
<img src="<?php $result->picture ?>" alt="My Photo" />
i give img src = image path link... but, i can't saw that user profile photo. any body help me, how to display the user profile photo.
Thanks in advance.
Comments