Skip to content
stanistan edited this page May 10, 2011 · 1 revision

Updating records in the database.

Parameters:

  • (string) Table name
  • (array) fields
  • (string) identifier, ID, or IDE

Returns:

  • (bool) true or false on success / failure

Example:

// originally album.name = 'Piper at the'
$album_id = 2;
$fields = array(
    'name' => 'Piper at the Gates of Dawn'
);
$rs = aql::update('album', $fields, $album_id);
Clone this wiki locally