I get this error whenever I try to insert a user into the database:
You have an error in your SQL syntax near 'Resource id #5' at line 1
But when I use the SQL line in phpMyAdmin, it works fine. If I take out the die command, it goes through, but doesn't add it into the database. Can someone explain why this happens? If it's absolutely neccessary I'll post the SQL code, but I rather not.