Hi there,
Can anyone tell me why the escape_string routines work on my PC but not on the server?
I am using object version of mysqli
PC PHP version = 5.2.9-2
Server PHP version = 5.3.2-1
test string = (Toby is a good <>'"-/)
output on my pc = (Toby is a good <>\'\&quo t;-/)
output on server = (Toby is a good <>'"-/), ie unchanged
Thanks
Can anyone tell me why the escape_string routines work on my PC but not on the server?
I am using object version of mysqli
PC PHP version = 5.2.9-2
Server PHP version = 5.3.2-1
Code:
if ($mysqli->set_charset("utf8")) { } $okName = $mysqli->real_escape_string($_POST['Name']); $okName = htmlspecialchars(okName);
output on my pc = (Toby is a good <>\'\&quo t;-/)
output on server = (Toby is a good <>'"-/), ie unchanged
Thanks
Comment