I have a situation where i have some HTML stored in mysql. I am trying to get everything after the <body> tag to show up from the mysql entry. I know how to get it from the database etc. I am just having problems grabbing all the text after the <body> tag. Any ideas on how i could do this? 😕
lobo235 www.netlobo.com
Here's a suggestion:
$bodycontent = explode("<body", $data_from_db); $body = "<body". $bodycontent[1]; echo $body;
The rest will then be stored in $bodycontent[0];
knutm
That works nicely. I didn't think of using that method. Thanks!