You've used fetchrow_hashref but you're treating the value you get from it as if it were a hash rather than a hashref. Use $rowdata->{id} instead of $rowdata{id}. (Use -> everywhere you mention $rowdata) use strict would have caught this for you.
In reply to Re: building a hash from a database
by duff
in thread building a hash from a database
by bfdi533
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |