@Jonh Conde's answers might work for you but it is better to do the following:
<?php
session_start();
$lat = mysql_real_escape_string( trim( $_REQUEST['lat'] ) );
$lng = mysql_real_escape_string( trim( $_REQUEST['lng'] ) );
$usr = mysql_real_escape_string( trim( $_SESSION['username'] ) );
$sql="INSERT INTO `POINT` (`LocationLat`, `LocationLngme`, `UserName`) VALUES ('$lat', '$lng', '$usr')";
// Putting '`' backticks around column and table names makes sure some mysql errors are prefented.
mysql_query($sql);
?>
Also take a look at mysqli_*
or PDO
since mysql_*
is depracted