Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

James.Paul

macrumors regular
Original poster
May 19, 2002
194
0
Northallerton, England
Hello,
Just wondering if anyone can give me a quick bit of help regarding a php issue. It maybe quite basic to many but I have never used php before. I am customising an image gallery (snipe gallery) which uses a combination of php and mySQL. Everything seems to be going okay but there is one bit that I am trying to change and it has me stumped. Within the image search results page there are next/previous text links on the bottom of the page. I wish to replace the text with a static PNG arrow graphic. The line of the code follows as below:

echo '<a href="image.php?page='.$_REQUEST['page'].'&keyword='.urlencode($_REQUEST['keyword']).'&image_id='.$prev_id.'&search_cat='.($_REQUEST['search_cat']).'&search_type='.$search_type.'"><b>Prev</b></a>';

I have tried to replace the <b>Prev</b> with <img src="filepathname.png"> but the broken image icon is displayed. I have done some searching on the php websites but aren't really coming up with any definitive solution. Can anyone help? I would have posted this in the Snipe Gallery forums but they are down and have been for a few days now.

Thanks
James
 
even though it is php the images and lnks work in html. what you did should have worked. check your spelling and image path.
 
Thanks,
The file path though i've put in is correct and safari's activity viewer is showing that the image loads okay, it is just not displaying for some reason.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.