Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- pass the variable from url


tw56 - 3:40 am on Nov 10, 2011 (gmt 0)



$kv = urldecode(strip_tags($_GET['key']));
$sql = 'SELECT * FROM `words` WHERE `key` = \'1ww\'';\\this works


I want to use the $kv to replace the \'1ww\' but I can't seem to get the right syntax.

echo $kv; \\ 1ww

when I use the $kv in the sql I return nothing.
when I leave it as is I return the correct rows.

Thanks for any help


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/4385463.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com