in reply to Re: Why is my code assigning the last-retrieved value to all elements in my hash?
in thread Why is my code assigning the last-retrieved value to all elements in my hash?
The OP's query returns only one record (it includes 'LIMIT 1'). On each loop, he executes the query for the new $book_id and then fetches that one record.
|
|---|