Kumaresan Drupal Developer at Chennai
Please follow this blog if u feel the blog content is useful to you
Friday, June 15, 2012
Get single field value from a table in drupal7
<?php
$filename = db_query("SELECT uri from file_managed where fid=:fid", array(':fid' => arg(3)))->fetchField();
echo $filename;
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment