I'm having trouble creating the mouseover and mouseout states of the image because I have a quote inside a quote inside a quote. Is when I use the PHP code below I receive an Uncaught SyntaxError because the " before $id is closing the entire line. Any ideas how to get around this? Thanks!
<img src="inventory_images/' . $id . '_1medium.jpg" onmouseover="this.src=\'inventory_images/\" . $id . \"_2medium.jpg\';" onmouseout ="this.src=inventory_images/" . $id . "_1medium.jpg;" />