>>23
actually looking more closely that article isnt perfect. see also http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string
yea php sucks but i doubt me telling you that is going to stop you using it