agoldenberg/LearnPHP — pull request #1 by Adduc (2013-11-23 14:45:32+00:00)
Title: Utilize MySQLi escape string functionality instead of MySQL's.

If you're using the MySQLi extension, you should stick with it when escaping strings instead of using mysql_real_escape_string. In some environments, mysql_real_escape_string would fail in this situation because you don't have an active MySQL connection (just a MySQLi one).