in reply to Re: huge problem!
in thread Inserting sequences without duplicates
Im trying with this... this is actually printing only 1 ofmy $in=join (", ", (map { $_ = "'$_'" } @one)); $sql="SELECT * FROM sistema WHERE codigo_inscripcion IN ($in) and mat +ricula='$matricula'"; $pdbh=$dbh->prepare($sql); $pdbh->execute(); # stuff here! while (my $ref = $pdbh->fetchrow_hashref()) { if($ref->{'mon'} != ''){$mon="Mon$ref->{'mon'})} if($ref->{'tue'} != ''){$mar="Tue$ref->{'tue'}"} if($ref->{'wed'} != ''){$mie="Wed$ref->{'wed'}"} if($ref->{'thu'} != ''){$jue="Thu$ref->{'thu'}"} if($ref->{'fri'} != ''){$vie="Fri$ref->{'fri'}"} if($ref->{'sat'} != ''){$sab="Sat$ref->{'sat'}"} if($ref->{'sun'} != ''){$dom="Sun$ref->{'sun'}"} } $pdbh->finish(); exit; if ($mon ne ''){ $lun=~ /([A-Za-z]*)([0-9]*)\/([0-9]*)/; for($z=$2;$z<$3;$z++) { push (@soft, "$1$z"); } push (@soft, "$1$3"); print @soft; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: huge problem!
by rdfield (Priest) on Sep 10, 2002 at 15:19 UTC | |
|
Re: Re: Re: huge problem!
by Joost (Canon) on Sep 10, 2002 at 15:28 UTC |