note 14907 added to function.mysql-escape-string.php

From: Date: Mon, 20 Aug 2001 22:31:56 +0000
Subject: note 14907 added to function.mysql-escape-string.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16940@lists.php.net to get a copy of this message
The point of using mysql_escape_string() is so that malicious users can't supply an evil string that causes mysql to do evil things. Imagine if somebody typed in their username to your website as something like:<br><br> MrUser"; DROP DATABASE mysql <br><br> mysql_escape_string() defeats this attack. http://www.php.net/manual/en/function.mysql-escape-string.php

« previous php.notes (#16940) next »