Usually I use trim() PHP function to check, if data is not empty. Also for MySQL I use mysql_real_escape_string(). Is this enough,or do I need to perform additional checks?
Usually I use trim() PHP function to check, if data is not empty. Also
Share
To check if data is “empty”, you can use empty().
Yes, to escape data you use
mysql_real_escape_string()for MySQL. By default,trim()is used to trim trailing and leading whitespace, if used without additional parameters.Is it so hard to check on manual what each function does?