in reply to DBI help->selectrow_hashref instead of fetchrow_hashref?

I looked at your updated code. I don't see anywhere that you failed to call execute(), but I also don't see where you're getting $dbh from.

Switching to selectall_hashref() is possible and may get rid of the error if you properly remove the other DBI calls that it replaces, but it doesn't solve the fundamental problem which is that you're trying to write DBI code but you haven't taken the time to learn the basics of DBI yet. You should start with this tutorial and then have a look at the DBI docs. Copy-and-paste coding is a dangerous thing to do with DBI.

  • Comment on Re: DBI help->selectrow_hashref instead of fetchrow_hashref?

Replies are listed 'Best First'.
Re: Re: DBI help->selectrow_hashref instead of fetchrow_hashref?
by stonecolddevin (Parson) on Jul 08, 2003 at 00:06 UTC
    Thanks a bunch, perrin. I truly haven't taken time to learn my DBI basics, so I'll definitely check that tutorial out and keep it for reference. select_all, that's what I was looking for!
    -Dhoss

    And if you're feeling lucky... come and take me home And if you feel loved If you feel lucky, if you feel loved If you feel lucky, if you feel loved You've crossed the walls - Excelled Further along through their hell All for my heart, I watch you kill You always have, you always will Now spread your wings and sail out to me....