function tripal_feature_update_db_reference
1.x tripal_feature-db_references.inc | tripal_feature_update_db_reference($dbxref_id, $db_id, $accession) |
Related topics
1 call to tripal_feature_update_db_reference()
- tripal_feature_edit_ALL_db_references_form_submit in tripal_feature/
includes/ tripal_feature-db_references.inc
File
- tripal_feature/
includes/ tripal_feature-db_references.inc, line 280 - @todo Add file header description
Code
function tripal_feature_update_db_reference($dbxref_id, $db_id, $accession) {
$sql = "UPDATE {dbxref} SET db_id=%d, accession='%s' WHERE dbxref_id=%d";
chado_query($sql, $db_id, $accession, $dbxref_id);
}