Hello,
The data that actually gets stored in my database differs from what I'm trying to put there. Here's a short code snippet:
$lat = 42.272939;
$lng = -83.622941;
// insert cordinates into dB
$query = "INSERT INTO markers (lat, lng, user_id) VALUES ('$lat','$lng','$user_id')";
$results = mysql_query($query)
or die(mysql_error());
When I look in the database, the data is stored as:
42.272938 and -83.622940.
Any ideas as to why this happens?
These values are being stored as float(10,6). Not sure if this is useful, but here's some other info:
datbase: MySQL
engine: InnoDB
Format: Compact
Collation: utf8_general_ci
Thanks