[Catalyst] Insert Multiple rows - GOOD CODE

Will Smith willbelair at yahoo.com
Mon Dec 19 22:19:41 CET 2005


Thank you - your code is good - It was my stupidity that made things wrong. I just paste the code just in case someone needs that.
   
  foreach my $artist ( @{$c->req->params->{artistid}} ) {
    
    if ($artist){  
     my $cd = mymusic::M::CDBI::Cd->find_or_create(
      artistid => $artist
     );
    $cd->title(shift @{$c->req->params->{cdtitle}});
    $cd->update();
}}


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20051219/6149f6fc/attachment.htm


More information about the Catalyst mailing list