public function DatabaseStatementBase::fetchField

cis7 database.inc public DatabaseStatementBase::fetchField($index = 0)
cle7 database.inc public DatabaseStatementBase::fetchField($index = 0)
elmsmedia7 database.inc public DatabaseStatementBase::fetchField($index = 0)
icor7 database.inc public DatabaseStatementBase::fetchField($index = 0)
meedjum_blog7 database.inc public DatabaseStatementBase::fetchField($index = 0)
mooc7 database.inc public DatabaseStatementBase::fetchField($index = 0)

Returns a single field from the next record of a result set.

Parameters

$index: The numeric index of the field to return. Defaults to the first field.

Return value

A single field from the next record, or FALSE if there is no next record.

Overrides DatabaseStatementInterface::fetchField

File

includes/database/database.inc, line 2214
Core systems for the database layer.

Class

DatabaseStatementBase
Default implementation of DatabaseStatementInterface.

Code

public function fetchField($index = 0) {
  // Call PDOStatement::fetchColumn to fetch the field.
  return $this->fetchColumn($index);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.