Having an issue with placing an image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dreamslayer
Forum Newbie
Posts: 2
Joined: Sun Apr 01, 2007 8:02 am

Having an issue with placing an image

Post 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.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Having an issue with placing an image

Post 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>");} ?>
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
dreamslayer
Forum Newbie
Posts: 2
Joined: Sun Apr 01, 2007 8:02 am

Post by dreamslayer »

Ah, that's what I was doing wrong.

Didn't have any \

Thank you very much ^^
Post Reply