(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

[Read more..]

Courtesy : http://agaricdesign.com