How do I insert site information data into another table? I have developed website using Drupal. I have created an application without using Drupal, using another framework. In my application I also stored site logo,site name etc. I want to update  my site information table when updating 
Drupal site information from admin/settings/site-information.

The fields are the following ones:


id: int(12), primary key
site_title: varchar(60)
site_logo: varchar(200)
You can use a hook_form_alter to add a submit function to the form, see http://drupal.org/node/222158 (for D6 but should be the same for D7). 

In your new submit function you can do whatever you want...

You can query other database following this doc http://drupal.org/node/18429

  $other_database = array(
      'database' =&gt; 'databasename',
      'username' =&gt; 'username', // assuming this is necessary
      'password' =&gt; 'password', // assuming this is necessary
      'host' =&gt; 'localhost', // assumes localhost
      'driver' =&gt; 'mysql', // replace with your database driver
  );
  // replace 'YourDatabaseKey' with something that's unique to your module
  Database::addConnectionInfo('YourDatabaseKey', 'default', $other_database);
  db_set_active('YourDatabaseKey');

  // execute queries here

  db_set_active(); // without the paramater means set back to the default for the site
  drupal_set_message(t('The queries have been made.'));