For some reason a single field will not insert into my database (email field). I cannot find anything wrong. I have echoed out the variable for it fine. However nothing seems to insert even manual text. Can anyone see an error?
mysql_query("INSERT INTO 'users' (fbID, firstName, lastName, facebookURL, birthday, updated, accessToken, emailOne) VALUES ('".mysql_real_escape_string($userId)."', '".mysql_real_escape_string($firstName)."', '".mysql_real_escape_string($lastName)."', '".mysql_real_escape_string($link)."', '".mysql_real_escape_string($birthday)."', '".mysql_real_escape_string($today)."', '".mysql_real_escape_string($accessToken)."', '".mysql_real_escape_string($email)."')");
Split it up for debugging.
So you can print out your query and paste this one into your phpmyadmin for testing.
You should get an error if something is not working.
Introduce some error handling like mentioned in the php documentation
If your query is correct it should work. Otherwise it should tell you about an error.