Hey everyone, I know this is a simple task, but I seem t be doing something wrong, and I cannot figure it out for the life of me. (I'm still quite new at PHP) <?php switch ($tag) { case 'Cubs': echo '<img src=\"../imgs/cubs.jpg\" /><br /><br />'; break; case 'Scouts': echo '<img src=\"../imgs/scouts.jpg\" /><br /><br />'; break; case 'Explorers': echo '<img src=\"../imgs/scouts.jpg\" /><br /><br />'; break; } ?> PHP: For some reason, the images are not displaying. If I change the image tag for just a word... it will display. The images are definitely in that directory! I am right by putting a black-slash before the double quotations? Thank you in advice, Jam
<?php switch ($tag) { case 'Cubs': echo "<img src='../imgs/cubs.jpg' /><br /><br />"; break; case 'Scouts': echo "<img src='../imgs/scouts.jpg' /><br /><br />"; break; case 'Explorers': echo "<img src='../imgs/scouts.jpg' /><br /><br />"; break; } ?>