Wow, how did I miss that one line? I know I was using it originally because I was getting an error from it at one time. I must have taken it out to get rid of the error.
I put it back in on the new test file I showed you and now I get a database error:
PHP Code:
Database error in vBulletin 3.7.1:
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
Error Number : 1064
My avatars are using my files, not my database. I double checked.