hi i am newbie in php. i have a query. when we can apply the '\' manually. then what is the need of addcslashes and addslashes in php.
Hi, How do you add slashes manually for the user generated datas. say for example: If someone enters vetri'p as user data .how will handle it and insert it directly to the database will leads to malfunctioning.
It's better to use mysql_real_escape_string() if you're doing it to sanitize MySQL data, as that fixes a couple other MySQL-specific things.