> The problem is $searchenquiry would be contained inside $mydata->JR so I would need 
> to see if it exists and then put <b>...</b> around it, without changing the original 
> case.


what do you have in $searchenquiry?

try this

echo preg_replace ('/('.$searchenquiry.')/i' , "<b>$1</b>", $mydata->JR);

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to