PDA

View Full Version : I want to turn the browse link to a button - ANSWERED



NYColt
03-12-2003, 12:33 PM
Can anyone tell me how I can turn this:

<?php browse_all_listings() ?> into a button link.

Obviosly I am not real php savy.

Thanks
NYColt

Anonymous
03-12-2003, 04:39 PM
That's actually just html. In style.php change this code
<?php echo "<a href=\"listingsearch.php\">Browse All Listings &#40;$num_listings&#41;</a>";?>

to
echo "<a href=\"listingsearch.php\"><img src=\"path\to\image \"></a>";

NYColt
03-12-2003, 05:32 PM
Hi

Thanks for the look.

I changed that code you referred to, to this:

echo "<a href=\"listingsearch.php\"><img src=\"http://www.mywebsite.com/TestSite/template/vertical-menu/images/buttons/browseallistings.gif"></a>";

And I got this error message
Parse error: parse error, unexpected '<' in /www/c/mywebsite.com/htdocs/TestSite/template/vertical-menu/style.php on line
Any idea which < this refers to?

Thanks
NYColt

Anonymous
03-12-2003, 05:47 PM
you left off the "\" after .gif.

NYColt
03-13-2003, 06:18 AM
Still can not get it to call the button.

Do you see anything wrong with this?

echo "<a href=\"listingsearch.php\"><img src=\" http://www.mywebsitename.com/open-realty/template/vertical-menu/images/buttons/browseallistings.gif\"></a>";

Thanks
NYColt :shock:

NYColt
03-13-2003, 08:34 AM
Ok my bad, it's working now.

echo "<a href=\"listingsearch.php\"><img src=\" http://www.cdmemoriesonline.com/open-realty/template/vertical-menu/images/buttons/browseallistings.gif\"></a>";

One more question. Could you tell me where to put border="0"

The button now has a boder which I do not want.

Thanks again
NYColt

Anonymous
03-13-2003, 12:46 PM
it depends on what you want. if you don't want any images to have a border, go into style.css and put
img &#123;
border&#58; none;
&#125;


if you only want this button not to have a border, it would be
echo "<a href=\"listingsearch.php\"><img src=\" http&#58;//www.cdmemoriesonline.com/open-realty/template/vertical-menu/images/buttons/browseallistings.gif\" border=\"0\"></a>";

NYColt
03-13-2003, 01:22 PM
GREAT!

Thanks for your help!

I appreciate it.

NYColt