(Tips) Fastest way to get just one result from a database table in Drupal
Fastest way to get just one result from a database table in Drupal
-
To get a single value result – one row from a just one column – the Drupal
function for that is db_result(), which takes the result of db_query() as an
argument.
http://api.drupal.org/api/function/db_result/5
Courtesy : http://agaricdesign.com
- guru's blog
- Login to post comments
![Drupal-6-Book-[Building Powerful and Robust Websites with Drupal 6].jpg](http://www.drupalranch.com/images/Drupal-6-Book-[Building%20Powerful%20and%20Robust%20Websites%20with%20Drupal%206].jpg)