Thread: Asp Code help
View Single Post
Old 03-28-2003, 01:33 PM   #13 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
i posted it up there

replace all instances of <'> in your strings with <''>

i.e:

Code:
$one = "hello there's a cat in my hat";
#becomes...
$two = "hello there''s a cat in my hat";
then no malicious sql can run.
__________________
-- bloomberg.
abc123 is offline   Reply With Quote