dwh
Fri 31st Aug '01, 10:51pm
Just wondering how much security is built into php.
Like when you are doing an insert to the mysql database, say you INSERT INTO X (var,var2,var3) VALUES (x,y,$Z)
what if there's a comman in $Z? I guess that would cause the command to fail? How about:
INSERT INTO X (var,var2,var3) VALUES (x,y,"$Z")
or do you need to embed $Z in htmlspecialcharacters?
Like when you are doing an insert to the mysql database, say you INSERT INTO X (var,var2,var3) VALUES (x,y,$Z)
what if there's a comman in $Z? I guess that would cause the command to fail? How about:
INSERT INTO X (var,var2,var3) VALUES (x,y,"$Z")
or do you need to embed $Z in htmlspecialcharacters?