I am using php; and i read that if i am asking the user to enter some information about himself through a form then when i access that information;i should better use
$var=mysqli_real_escape_string($dbc,trim($_POST['name']));
as it will delete all the spaces from the text field and other unwanted symbols, but it really is not deleting the spaces?
Help!
trim()does not delete ALL spaces, only leading and trailing spaces.