Greetings.
I'm really in desperate need of help here.
What I wanna do is split the values from a data file (separated by pipes '|') and put it into an e-mail.
The odd thing is that the script only considers the value of the data file in the mail. I'm going NUTS!
here's the code:
...
$pessoais = "produtos/pessoais.dat";
$mailprog = '/usr/sbin/sendmail';
$search_for = "a";
$search_field = "all";
&search_database($pessoais,$search_for);
$count = @results;
...
...
foreach $results (@results){
($key,$descricao,$inscricao,$mensalidade,$codIBM,$qid) = split(/\|/,$results);
print MAIL "$descricao $FORM{$qid}\n\n";
}
...
What IS POSSIBLY WRONG in this?!?!?! Please, help me asap, 'cause this nightmare should alaready be working...
Thanks in advance,
Er Galvão Abbott
a.k.a. Lobo, DaWolf
er@matrix.com.br
Webdeveloper