in reply to Re^3: How to reach each element of 2d-array retrieved from Mysql query?
in thread How to reach each element of 2d-array retrieved from Mysql query?
@row=$dbh->Query("select a, b from c where d=1")->FetchRow;
That returns:
a1, b1 a2, b2
And I do get only (a1, b1)?
So, if You suggest make the query before cycle, then what should I put in the while(), and {push @a, \@row}? - Will I have a column, and not a row?! PS I don't know how to use code-tags...
Edit: g0n - code tags and formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to reach each element of 2d-array retrieved from Mysql query?
by davorg (Chancellor) on May 25, 2006 at 08:41 UTC | |
by t-strong (Initiate) on May 25, 2006 at 09:13 UTC | |
by davorg (Chancellor) on May 25, 2006 at 09:55 UTC | |
|
Re^5: How to reach each element of 2d-array retrieved from Mysql query?
by davorg (Chancellor) on May 25, 2006 at 08:38 UTC | |
by t-strong (Initiate) on May 25, 2006 at 08:48 UTC |