Originally Posted by bestroligast Hello..
can someone please help me with adding an image instead of the text link to this code:
PHP Code:
} 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
Originally Posted by Dan Friedman Change 'Add To My Favorites' to <img src="URL TO PICTURE" />
Furthering what Dan was saying, heres an example:
Quote: } 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.