A small question about not matching variables
Briefly

In the provided PHP code, it attempts to display the cover image of a book based on its specific location, using if-else statements to conditionally select the cover.
The logic checks if there's an image linked to the main cover in the database for the current location, ensuring that the correct cover is displayed.
However, if a book is in multiple locations, the control flow may lead to showing incorrect cover images due to insufficient conditional checks.
The goal is to display the cover related to the book's current location. Further refinement in the conditional logic may be required.
Read at SitePoint Forums | Web Development & Design Community
[
|
]