+//-----------------------------------------------------------------------------
+// Update record activity status.
+//
+function update_record_status($id, $status, $table, $key) {
+ $sql = "UPDATE ".TB_PREF.$table." SET inactive = "
+ . db_escape($status)." WHERE $key=".db_escape($id);
+
+ db_query($sql, "Can't update record status");
+}