John Taylor-Johnston wrote:
Like this?
<td>".preg_replace ('/('.preg_quote($searchenquiry).')/i' , "<b>$1</b>",
$mydata->JR)." </td>
Still getting the unknown modifier error.
No, like this:
preg_quote($searchenquiry, '/')
so also the delimiter - /, is quoted
$searchenquiry = "1.0.1 Retrospective bibliographies and checklists / bibliographies et
répertoires rétrospectifs";
preg_replace ('/('.$searchenquiry.')/i' , "<b>$1</b>", $mydata->RB)
error: Unknown modifier 'b' in <b>/www-html/new1/db/display.table.inc</b> on line <b>103</b>
the problem is the slash in $searchenquiry, use preg_quote()
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php