NameSilo

Help please!

Spaceship Spaceship
Watch

bestroligast

Established Member
Impact
7
Hello..

can someone please help me with adding an image instead of the text link to this code:

PHP:
} else {
			echo "<a href='".get_addfavorite_link("id=".$media['id'])."'>Add To My Favorites</a>\n";
		}
i cant even get the script maker to do it so please i would be very greatful if u can help me :o
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Change 'Add To My Favorites' to <img src="URL TO PICTURE" />
 
0
•••
bestroligast said:
Hello..

can someone please help me with adding an image instead of the text link to this code:

PHP:
} else {
			echo "<a href='".get_addfavorite_link("id=".$media['id'])."'>Add To My Favorites</a>\n";
		}
i cant even get the script maker to do it so please i would be very greatful if u can help me :o
Dan Friedman said:
Change 'Add To My Favorites' to <img src="URL TO PICTURE" />
Furthering what Dan was saying, heres an example:
} else {
echo "<a href='".get_addfavorite_link("id=".$media['id'])."'><img src=\"images/image.gif\" border=\"0\" /></a>\n";
}

Notice how in the img>src tag I have a slash before the quotes? Make sure you do that :). Otherwise the php software won't understand if that part of the code is part of the php.

All the best,
Rhett.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back