Let me know how to fetch image from database. actually i am trying to fetch image from database using this question. I am try to fetch image from database using following code. $fid is my $row['column_name']
$fid=$r['field_upload_photo_fid']; $image = theme('image_style', array( 'style_name'=> 'small', 'path' => $file->uri, 'alt' => 'user picture' )); print $image;
but now it shows http://example.com/sites/default/files/styles/small/public/styles/Style_name/public/Chrysanthemum.jpg. thats why image not fetching from database.
Also what is a style in $variable.