Page 1 of 1

Having an issue with placing an image

Posted: Sun Apr 01, 2007 8:04 am
by dreamslayer
Never used PHP before and downloaded a webcomic navigation template. I have everything working but 1 small issue.

Code: Select all

<? if($strip_id != 0) {print("<a href=\"?strip_id=0\">First Comic</a>");} ?>
I want to replace the text "First Comic" with an image. Every method I have tried has turned my whole index blank =P

Thank you for any input.

Re: Having an issue with placing an image

Posted: Sun Apr 01, 2007 9:28 am
by s.dot
dreamslayer wrote:Never used PHP before and downloaded a webcomic navigation template. I have everything working but 1 small issue.

Code: Select all

<? if($strip_id != 0) {print("<a href="?strip_id=0">First Comic</a>");} ?>
I want to replace the text "First Comic" with an image. Every method I have tried has turned my whole index blank =P

Thank you for any input.

Code: Select all

<? if($strip_id != 0) {print("<a href="?strip_id=0"><img src="path/to/image.jpg" alt="image" border="0" /></a>");} ?>

Posted: Sun Apr 01, 2007 12:09 pm
by dreamslayer
Ah, that's what I was doing wrong.

Didn't have any \

Thank you very much ^^