I deleted your database code and substituted $sth->fetchrow() with (rand(),rand()). My output was ok, no repetition of the last element.
In reply to Re: Why is my code assigning the last-retrieved value to all elements in my hash?
by jethro
in thread Why is my code assigning the last-retrieved value to all elements in my hash?
by punch_card_don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |