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

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.