You have an error in your SQL syntax;

$sql=mysql_query("update `userprofile` set `fname`='$fname', `lname`='$lname', `phone`='$phone', `hometown`='$hometown', `postalcode`='$postalcode', `latitude`='$latitude', `longitude`='$longitude' where `email`= '$emailone'");


Source: syntax

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.