OK.
Here's that portion of the db.cgi code:
sub switch_to_clientes {
#-----------------------------------------------------
$cols = 'Identificador,Fecha de alta,Nombre,Apellidos,Empresa,NIF/CIF,Teléfono,Tipo de vía,Nombre de vía,Número de vía,Detalles,Población,Provincia,País,Código postal,E-mail,URL,Forma de pago,Número,Titular';
@db_cols = split /,/,$cols;
$db_file_name = $db_script_path . "/clientes.db";
$db_key_pos = 0;
}
sub switch_to_buzones {
#-----------------------------------------------------
$cols = 'Artículo,Identificador,Tipo,Fecha de inicio,Fecha de fin,Tiempo,Dirección,Contraseña,Precio';
@db_cols = split /,/,$cols;
$db_file_name = $db_script_path . "/buzones.db";
# $db_sort{'Fecha de inicio'} = 'date';
}
The main database is clientes.db, which key field is "Identificador".
In the second database, buzones.db, the field "Identificador" should be in the first position, but if I do so it doesn't work.
Thanks again.
Here's that portion of the db.cgi code:
sub switch_to_clientes {
#-----------------------------------------------------
$cols = 'Identificador,Fecha de alta,Nombre,Apellidos,Empresa,NIF/CIF,Teléfono,Tipo de vía,Nombre de vía,Número de vía,Detalles,Población,Provincia,País,Código postal,E-mail,URL,Forma de pago,Número,Titular';
@db_cols = split /,/,$cols;
$db_file_name = $db_script_path . "/clientes.db";
$db_key_pos = 0;
}
sub switch_to_buzones {
#-----------------------------------------------------
$cols = 'Artículo,Identificador,Tipo,Fecha de inicio,Fecha de fin,Tiempo,Dirección,Contraseña,Precio';
@db_cols = split /,/,$cols;
$db_file_name = $db_script_path . "/buzones.db";
# $db_sort{'Fecha de inicio'} = 'date';
}
The main database is clientes.db, which key field is "Identificador".
In the second database, buzones.db, the field "Identificador" should be in the first position, but if I do so it doesn't work.
Thanks again.