Re: Weird Wildcard Search

From: Date: Fri, 13 Oct 2000 02:31:47 +0000
Subject: Re: Weird Wildcard Search
Groups: php.db 
Request: Send a blank email to php-db+get-3571@lists.php.net to get a copy of this message
Hi All, Thanks to Lutz suggestion on the urlencode, the code is working now. I did not use the session handling as it's a whole new concept which I don't really need at this point. Furthermore, I am not really familiar with it. Anyway, here is my solution - quite simple...:) $sqlstmt = urlencode($sqlstmt) (before my db-browsing) . . $sqlstmt = urldecode($sqlstmt) (before my next mysql_query) Thanks Lutz and the rest who have reply to me.
echo " <a href=\"sresults.php3?sqlstmt=$sqlstmt&CR=$CR&RL=$y\">[Next]</a>"; Doing
       $sqlstmt = urlencode($sqlstmt)
befor this echo protects the variable in the url.


« previous php.db (#3571) next »