Hi gurus -
Here is my problem - I am reading in a file,line by line -
I then need to update mysql depending on the 'id' -
eg
foreach $i (@indata) {
chomp($i);
get the fields
#### if I update mysql here, it updates on each iteration - therefore only leaving the last record ###
}
### if I do the update here I only get the first record !
Any help gratefully appreciated !
cheers all
Rab
Here is my problem - I am reading in a file,line by line -
I then need to update mysql depending on the 'id' -
eg
foreach $i (@indata) {
chomp($i);
get the fields
#### if I update mysql here, it updates on each iteration - therefore only leaving the last record ###
}
### if I do the update here I only get the first record !
Any help gratefully appreciated !
cheers all
Rab