Re: split array

2002-05-01 Thread jeff dowd
I like Rons method best, except you could use this instead ov array slot values, which I am not sure will work... while ( my @data= $cursor->fetchrow_hashref ) { $idnum = $data->{'idnum'}; $username = $data-.{'username'}; $email = $data->{'email'}; $code = $data->{'c

Re: split array

2002-05-01 Thread drieux
On Wednesday, May 1, 2002, at 02:47 , Greg D. wrote: > while(my @data = $sth->fetchrow_array){ > print "@data\n"; > > right now its prints out for example: > > 1 greg [EMAIL PROTECTED] 1234 2 john [EMAIL PROTECTED] 4r434 and so on > > i want it so it prints out.. > > 1 greg [EMAIL PR

Re: split array

2002-05-01 Thread Ron
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: > H

Re: split array

2002-05-01 Thread bob ackerman
On Wednesday, May 1, 2002, at 03:43 PM, 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 "; > }

Re: split array

2002-05-01 Thread Chas Owens
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 "; > } > > "Greg

Re: split array

2002-05-01 Thread Ron
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 "; } "Greg D ." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

Re: split array

2002-05-01 Thread Chas Owens
On Wed, 2002-05-01 at 17:47, Greg D. wrote: > Hi, > > Is there any way i can split an array that contains information that i got > from the mysql database? > > here's the code: > > while(my @data = $sth->fetchrow_array){ > print "@data\n"; > > right now its prints out for example: >

Re: split array

2002-05-01 Thread drieux
On Wednesday, May 1, 2002, at 03:04 , bob ackerman wrote: > On Wednesday, May 1, 2002, at 02:55 PM, drieux wrote: >> On Wednesday, May 1, 2002, at 02:47 , Greg D. wrote: >>> here's the code: >>> >>> while(my @data = $sth->fetchrow_array){ >>> print "@data\n"; >> >> what does >> >>

Re: split array

2002-05-01 Thread bob ackerman
On Wednesday, May 1, 2002, at 02:55 PM, drieux wrote: > > On Wednesday, May 1, 2002, at 02:47 , Greg D. wrote: > >> Hi, >> >> Is there any way i can split an array that contains information that i >> got >> from the mysql database? >> >> here's the code: >> >> while(my @data = $sth->fetchrow_a

Re: split array

2002-05-01 Thread drieux
On Wednesday, May 1, 2002, at 02:47 , Greg D. wrote: > Hi, > > Is there any way i can split an array that contains information that i got > from the mysql database? > > here's the code: > > while(my @data = $sth->fetchrow_array){ > print "@data\n"; what does print "$_\n" forea

split array

2002-05-01 Thread Greg D .
Hi, Is there any way i can split an array that contains information that i got from the mysql database? here's the code: while(my @data = $sth->fetchrow_array){ print "@data\n"; right now its prints out for example: 1 greg [EMAIL PROTECTED] 1234 2 john [EMAIL PROTECTED] 4r434 and s