Jim Gibson wrote:
> On 9/30/09 Wed Sep 30, 2009 11:33 AM, "Bruce Ferrell"
> scribbled:
>
>>
>> Shawn H Corey wrote:
>>> Bruce Ferrell wrote:
I have a database (mysql if it matters) and I can select columns and
rows from it no problem. what I can't quite seem to see how to do is to
On 9/30/09 Wed Sep 30, 2009 11:33 AM, "Bruce Ferrell"
scribbled:
>
>
> Shawn H Corey wrote:
>> Bruce Ferrell wrote:
>>> I have a database (mysql if it matters) and I can select columns and
>>> rows from it no problem. what I can't quite seem to see how to do is to
>>> take the columns I can
Bruce Ferrell wrote:
>
[snip]
>
> OK if I read these right and I understand the results of
> my experiments
> correctly, this:
>
> @rtn = $sth->fetchrow_array();
>
> is giving me an array with two elements and this:
>
> push @data, [ @rtn ];
>
> is giving me an array of 2 element arrays. Not good
Bruce Ferrell wrote:
OK if I read these right and I understand the results of my experiments
correctly, this:
@rtn = $sth->fetchrow_array();
is giving me an array with two elements and this:
push @data, [ @rtn ];
is giving me an array of 2 element arrays. Not good as what I want is 2
arrays
Shawn H Corey wrote:
> Bruce Ferrell wrote:
>> I have a database (mysql if it matters) and I can select columns and
>> rows from it no problem. what I can't quite seem to see how to do is to
>> take the columns I can select and put them into a 2 dimensional array.
>>
>> I tried this:
>>
>> @data
Bruce Ferrell wrote:
I have a database (mysql if it matters) and I can select columns and
rows from it no problem. what I can't quite seem to see how to do is to
take the columns I can select and put them into a 2 dimensional array.
I tried this:
@data = $sth->fetchrow_array();
and it got a t
I have a database (mysql if it matters) and I can select columns and
rows from it no problem. what I can't quite seem to see how to do is to
take the columns I can select and put them into a 2 dimensional array.
I tried this:
@data = $sth->fetchrow_array();
and it got a two dimensional array o