I got error on line 16 in myphp page which is;
$result = mysql_query("update Users set lat='$lat',lon='$lng' where username=$_SESSION['username']");
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You lost track of all needed
'and additionally forgot to quote username value. So instead ofdo this in more clean manner:
or even better:
BTW: switch to MYSQLi or PDO as MYSQL extension is deprecated, no new code should touch it.