note 16381 rejected from function.urlencode by zak

From: Date: Sat, 27 Oct 2001 08:55:15 +0000
Subject: note 16381 rejected from function.urlencode by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19497@lists.php.net to get a copy of this message
urlencode added \ in front of ' which does not work really well with mysql. You may have to remove \ before pass it to mysql. mysql on nt4 does not mind the \, but on win98 and win2k it just does not work if you dont remove it. It could be related to the web server although I am not too sure, I am using badblue personal <? $self=basename($SCRIPT_NAME); if ($test) { print "<br>encoded - $sql<br>"; } else { $abc="select * from table1 where cole1 = 'value'"; $eabc=urlencode($abc); print "<a href=$self?test=on&sql=$eabc>link</a>"; } ?>

« previous php.notes (#19497) next »