Hi friends,


I need ur help,I have stored the data in the mysql .

eg :<td colspan=2>XXXXX<td>YYYY</td>............


I get the specific record and stored it in the variable using the PHP coding.

Now my need is how to extract the <td colspan=2> from the string seperately.

I tried the substr,explode method but it is not working correctly............


Plz give me suggestions...................


Regards
Heartyn...:p

If I understand your problem correctly, you want to strip :<td colspan=2>
from :<td colspan=2>XXXXX<td>YYYY</td>............

Have you tried using the str_replace function? This allows you to replace any segment of a string.
http://us2.php.net/str_replace

If you want to remove the HTML tags from a string, try using strip_tags.
http://us3.php.net/strip_tags