#!/usr/bin/php query("select * from db_servers;"); if ($db->num_rows()==0) { $db->query(" insert into db_servers (name, host, login, password, client) values ('".mysql_escape_string($human_hostname)."','".mysql_escape_string($host)."','".mysql_escape_string($user)."','".mysql_escape_string($password)."','".mysql_escape_string($L_MYSQL_CLIENT)."');"); } // set the membres.db_server_id $db->query(" update membres set db_server_id = (select max(id) from db_servers) where db_server_id is null ;"); // END of db_servers part // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ?>