Oops. As you stated, @row is suppose to be @data. I did assume that the display was in HTML. I guess it's an occupational hazard doing web development.
Ron "Chas Owens" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 2002-05-01 at 18:43, Ron wrote: > Hello Greg > > This is a simple method that may work. > > while ( my @data= $cursor->fetchrow_array ) { > $idnum = $row[0]; > $username = $row[1]; > $email = $row[2]; > $code = $row[3]; > > print "$idnum $username $email $code <br>"; > } > > "Greg D ." <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... <snip /> I assume you meant $data[0], etc. instead of $row[0], etc. This not really different from print "@data<br>"; which is equivalent to print join($", @data) . "<br>"; #$" = ' ' If this solves his problem then the <br> (instead of \n) solved it not separating the array into variables, but he did not even hint that he was using HTML so I doubt that is the solution. -- Today is Sweetmorn the 48th day of Discord in the YOLD 3168 Hail Eris, Hack Linux! Missile Address: 33:48:3.521N 84:23:34.786W -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]