Gossamer Forum
Home : Products : DBMan : Customization :

Re: Relational database not working

Quote Reply
Re: Relational database not working In reply to
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.

Subject Author Views Date
Thread Relational database not working Andres 4087 Aug 1, 2000, 4:15 AM
Thread Re: Relational database not working
JPDeni 3996 Aug 1, 2000, 5:18 AM
Thread Re: Relational database not working
Andres 3986 Aug 1, 2000, 10:37 AM
Thread Re: Relational database not working
JPDeni 3988 Aug 1, 2000, 2:54 PM
Thread Re: Relational database not working
Andres 3985 Aug 2, 2000, 12:38 AM
Thread Re: Relational database not working
JPDeni 4016 Aug 2, 2000, 12:46 AM
Thread Re: Relational database not working
Andres 4028 Aug 2, 2000, 1:25 AM
Thread Re: Relational database not working
JPDeni 4001 Aug 2, 2000, 1:34 AM
Thread Re: Relational database not working
Andres 4044 Aug 2, 2000, 1:51 AM
Thread Re: Relational database not working
JPDeni 3990 Aug 2, 2000, 3:49 AM
Thread Re: Relational database not working
Andres 3973 Aug 2, 2000, 4:14 AM
Thread Re: Relational database not working
JPDeni 4019 Aug 2, 2000, 4:30 AM
Thread Re: Relational database not working
Andres 3998 Aug 2, 2000, 5:10 AM
Thread Re: Relational database not working
JPDeni 3976 Aug 2, 2000, 3:28 PM
Thread Re: Relational database not working
Andres 3892 Aug 4, 2000, 12:09 PM
Thread Re: Relational database not working
JPDeni 3872 Aug 4, 2000, 3:57 PM
Post Re: Relational database not working
JPDeni 3875 Aug 4, 2000, 4:02 PM