Tell git to use CRLF for all files.
Use mysqli instead of mysql.

The old mysql extension[0] is deprecated as of PHP 5.5.0; the official
recommendation is to use either mysqli or PDO.[1]

While PDO has a number of useful features, including an abstraction layer that
supports multiple database engines, mysqli has an extremely similar API to
mysql, and thus is trivial to switch to.

The impetus for this change is mysqli's prepared statements[2].  These are much
nicer to use than either mysql_escape_string() or mysql_real_escape_string().

P.S. I tried my best to get git to stop mucking about with line endings, and
just leave them how they came.  I wasn't completely successful, but now
everything should be consistent, at least.

[0]: http://www.php.net/manual/en/intro.mysql.php
[1]: http://www.php.net/manual/en/mysqlinfo.api.choosing.php
[2]: http://www.php.net/manual/en/mysqli.quickstart.prepared-statements.php