If I input acesr'ss
as categoryname
in my POST-Request, it will insert only acesr
into my database. I can't figure out why.
Relevant code snippet:
$cate_name=mysqli_real_escape_string($conn,$_POST['categoryname']);
$usersql="Insert INTO abc(category_name) VALUES('".$cate_name."')";
I also tried addslashes
, but get the same problem.