Jump to content

[SOLVED] PHP search string and if <ul> is in string insert </p> before <ul>


woocha

Recommended Posts

Hi guys,

 

  I have a script that pulls info from a db and I need to determine if the db field contains ul for this I used:

if(strstr($row['body'],ul)){}

but now I need to know how to insert </p> before the ul is read from the db.  I am doing this so that the page validates.  I DO NOT want to alter the db field.  I just want to change the string before it is displayed to the browser.

 

Does anyone have any ideas?

 

thanks guys and gals

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.