Thanks for your reply Luuk.
This is part of the code for a registration form. I save the user info to a mysql database. I am trying to validate the user input to eliminate potential problems such as chars "/<>'"\".
I test the code on my PC before migrating it to the server. So the code is the same in both environments.
I look at the db records created and noticed the functions have no effect on the server. I use the app "mySQL Query Browser" to look at the records on my pc and a browser to display server records. No haven't use "view source" to do that.
Server is down right now. Output
db record on my pc = (Toby is a good <>\'\"-/)
db record on server = (Toby is a good <>'"-/), ie unchanged
thanks for your help. Ideas? Here is a bit more of my code .
-
$okName = $mysqli->real_escape_string($_POST['Name']);
-
$okName = htmlentities($okName);
-
-
$sql = "INSERT INTO OnlineTbl (UserName,..) VALUES ('okName',..)";
-
-
if (!$mysqli->query($sql)) {
-
die("Error: ".$mysqli->error);
-
}
-
-