rockinaway Posted March 27, 2007 Share Posted March 27, 2007 What I want to do is search for an image area in a big chunck of text then return the img stuff for example: <img alt="Inzamam breaks into tears at his final ODI match - Sky Sports" align="right" src="http://www.wickettowicket.com/gallery/albums/userpics/10001/pakvsziminzlastmatch%23.jpg" /><br /> <br /> The match for Pakistan was one of remembrance and pride. Losing their first two If is entered that.. I want to get only: <img alt="Inzamam breaks into tears at his final ODI match - Sky Sports" align="right" src="http://www.wickettowicket.com/gallery/albums/userpics/10001/pakvsziminzlastmatch%23.jpg" /> So that it only returns the image.. any help? Link to comment https://forums.phpfreaks.com/topic/44515-search-and-then-return-result/ Share on other sites More sharing options...
rockinaway Posted March 27, 2007 Author Share Posted March 27, 2007 Any help ? Link to comment https://forums.phpfreaks.com/topic/44515-search-and-then-return-result/#findComment-216285 Share on other sites More sharing options...
rockinaway Posted March 28, 2007 Author Share Posted March 28, 2007 Right I figured I could use strstr( IMG ADDRESS, strstr( the address bit, $main text)); How can I get a universal address, so like it isn't specific,. it searches for any address, like you can use % in MySQL queries.. what about in this.. if I want the address what would t be? http://% ? Link to comment https://forums.phpfreaks.com/topic/44515-search-and-then-return-result/#findComment-217019 Share on other sites More sharing options...
rockinaway Posted March 30, 2007 Author Share Posted March 30, 2007 ?? Link to comment https://forums.phpfreaks.com/topic/44515-search-and-then-return-result/#findComment-218237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.