Another question for the end of the day. A pattern has emerged . . . I spend all day struggling, post at end of day, have answer at beginning of new day. Like the seasons, its great. Thanks in advance.
I am now succesfully getting results from a mysql query. However, I am having a hard time parsing the results. I would like to be able to print a row at a time. But I just can't figure out what to use (fetch, fetchall_arrayref, etc.) I'm sure something has been written about formattin responses from dbi queries. Any pointers would be greatly appreciated.
I am currently using the following:
And while that does give the proper results, it gives them in an unparsed blob of info.
Any tips greatly appreciated.
Thanks
I am now succesfully getting results from a mysql query. However, I am having a hard time parsing the results. I would like to be able to print a row at a time. But I just can't figure out what to use (fetch, fetchall_arrayref, etc.) I'm sure something has been written about formattin responses from dbi queries. Any pointers would be greatly appreciated.
I am currently using the following:
Code:
while (@ary = $sth->fetchrow_array ())
{
print join ("\n", @ary), "\n";
}
And while that does give the proper results, it gives them in an unparsed blob of info.
Any tips greatly appreciated.
Thanks