[PHP] Re: encode $searchenquiry

2004-07-07 Thread John Taylor-Johnston
Torsten Here it is, if it is any use to you? John --- $sql = 'SELECT *,MATCH (KW,AUS) AGAINST (\''.stripslashes($searchenquiry).'\' IN BOOLEAN MODE) AS relevancy FROM '.$table.' WHERE MATCH (KW,AUS) AGAINST (\''.strips

[PHP] Re: encode $searchenquiry

2004-07-07 Thread John Taylor-Johnston
> > Or should I URLencode $searchenquiry or ... how should I approach this? > Hi John, > you are looking for htmlentities(): > http://de3.php.net/htmlentities > Regards, Torsten Roehr Torsten, Thanks. I think I'm going to start with htmlspecialchars(). htmlentities() might be over kill? Great :) J

[PHP] Re: encode $searchenquiry

2004-07-07 Thread Torsten Roehr
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have created an .inc that allows me to click on a submit to show the next or previous 25 records found etc. The problem is that if $searchenquiry includes a quotation mark, the html looks like: > > > > Is there