Page 1 of 1

How to read the tag contents

Posted: Tue Dec 16, 2008 10:49 pm
by zerandib
Hello,
How can i get the red colored text(string) to a variable. That is <img>
But dont want to get the Blue color <img>


$buffer = "<a class=p href='http://www.mysite.com/?page=2'>Next</a> ... tr><tr><td><img height=16 src='http://www.mysite.com/_pix/x.gif'></td></tr><tr><td><table border=0 cellspacing=0 cellpadding=0 style='margin-top:6px;'><tr><th colspan=7 align=left><table border=0 cellspacing=0 cellpadding=0 style='margin-bottom:15px;'><tr><td style='font-family:Arial; color:#404040; font-size:16pt; font-weight:bold;'><nobr>Tuesday, 16th o December 2008</td></tr></table></th></tr><tr><td width=165 valign=top style='padding-bottom:2px;'><a class=s target=_blank href='http://www.mysite.com/18998'>Katin makes some special training</a></td><td width=35></td><td width=165 valign=top style='padding-bottom:2px;'><a class=s target=_blank href='http://www.mysite.com/19799'>Georgia Jones fingering herself</a></td><td width=35></td><td width=165 valign=top style='padding-bottom:2px;'><a class=s target=_blank href='http://www.mysite.com/15814'>Fetish sluts masturbating on the lawn</a></td><td width=35></td><td width=165 valign=top style='padding-bottom:2px;'><a class=s target=_blank href='http://www.mysite.com/18614'>Hottest ! Deepthroating and gagging beauty</a></td></tr><tr><td><a target=_blank href='http://www.mysite.com/18998'><img id='0018998' class=t width=160 height=120 src='http://thumbs.mysite.com/_thumbs/000001 ... 98_005.jpg' onmouseout='endm("0018998"); this.src="http://thumbs.mysite.com/_thumbs/000001 ... 98_005.jpg"; this.style.border="solid 2px #A0A0A0";' onmouseover='startm("0018998","http://thumbs.mysite.com/_thumbs/000001 ... 98_",".jpg"); this.style.border="solid 2px #CC0D12";'></a></td><td></td><td><a target=_blank href='http://www.mysite.com/19799'><img id='0019799' class=t width=160 height=120 src='http://thumbs.mysite.com/_thumbs/000001 ... 99_012.jpg' onmouseout='endm("0019799"); this.src="http://thumbs.mysite.com/_thumbs/000001 ... 99_012.jpg"; this.style.border="solid 2px #A0A0A0";' onmouseover='startm("0019799","http://thumbs.mysite.com/_thumbs/000001 ... 99_",".jpg"); this.style.border="solid 2px #CC0D12";'></a></td><td></td><td><a target=_blank href='http://www.mysite.com/15814'><img id='0015814' class=t width=160 height=120 src='http://thumbs.mysite.com/_thumbs/000001 ... 14_014.jpg' onmouseout='endm("0015814"); this.src="http://thumbs.mysite.com/_thumbs/000001 ... 14_014.jpg"; this.style.border="solid 2px #A0A0A0";' <td>";

Output need to be like this;
$variable_1 = "img id='0018998' class=t width=160 height=120 src='http://thumbs.mysite.com/_thumbs/000001 ... 98_005.jpg' onmouseout='endm("0018998"); this.src="http://thumbs.mysite.com/_thumbs/000001 ... 98_005.jpg"; this.style.border="solid 2px #A0A0A0";' onmouseover='startm("0018998","http://thumbs.mysite.com/_thumbs/000001 ... 98_",".jpg"); this.style.border="solid 2px #CC0D12";'";

$variable_2 = "img id='0019799' class=t width=160 height=120 src='http://thumbs.mysite.com/_thumbs/000001 ... 99_012.jpg' onmouseout='endm("0019799"); this.src="http://thumbs.mysite.com/_thumbs/000001 ... 99_012.jpg"; this.style.border="solid 2px #A0A0A0";' onmouseover='startm("0019799","http://thumbs.mysite.com/_thumbs/000001 ... 99_",".jpg"); this.style.border="solid 2px #CC0D12";'";


any idea/code
thanks

Re: How to read the tag contents

Posted: Tue Dec 16, 2008 11:38 pm
by requinix
For God's sake, censor your post. And here's a great idea for you: LEARN PHP. A newbie could answer your questions.

But so that I don't sound like a vindictive bitch, what sets those two images apart from the rest?