Re: Re: sort() - Where did I go wrong?
| From: | John Taylor-Johnston | Date: | Sun, 11 Jul 2004 17:38:20 +0000 |
| Subject: | Re: Re: sort() - Where did I go wrong? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190186@lists.php.net to get a copy of this message | ||
Like this?
<td>".preg_replace ('/('.preg_quote($searchenquiry).')/i' ,
"<b>$1</b>", $mydata->JR)." </td>
Still getting the unknown modifier error.
> > $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()