On Wed, 6 Jun 2001, Marcos Rodriguez <[EMAIL PROTECTED]> wrote,

> At Wednesday, 6 June 2001, you wrote:
>
> Many thanks for your help but it doesn't work. I don't know if I
> am doing anything wrong of there is another problem. I send you complete
> string I am using to execute SQL sentence:
>
>    my $sql_inserta="INSERT INTO $tabla (dia_alta,
>                                         mes_alta,
>                                         anno_alta,
>                                         $fields[3],
>                                         $fields[4],
>                                         $fields[5])
>                                 VALUES ('$mday', # it works
>                                         '$mon',  # it works
>                                         '$year', # it works
>                                         '$postInputs{ $fields[3]}',
> # (*)
>                                         '$postInputs{ 'apellido1'}',
> # ok
>                                         '$postInputs{ 'apellido2'}')";
> #ok
>
> (*) If I type ...'$postInputs{ 'nombre'}, ... it works. I don't know
> what is the problem.

What are the content of $field[3] and $postInputs{$fields[3]}, or,
do they have content at all?

I don't know how you execute the sql syntax, but try to tell Perl
to let you know if there's a problem.  How'd you expect people to
fix the wrong thing if they don't know how the thing is broken?


s.a.n
-- 
Hasanuddin Tamir: [EMAIL PROTECTED] - Trabas: www.trabas.com

Reply via email to