Phpmyadmin未存储正确的十进制数
我面临着一个问题,即如何使用十进制(10,7)数作为坐标,我有一个表格,我用它在表格中插入数据,在两个输入字段中,我有一个自动填充的代码Phpmyadmin未存储正确的十进制数,phpmyadmin,decimal,Phpmyadmin,Decimal,我面临着一个问题,即如何使用十进制(10,7)数作为坐标,我有一个表格,我用它在表格中插入数据,在两个输入字段中,我有一个自动填充的代码 navigator.geolocation.getCurrentPosition(GetLocation); function GetLocation(location) { document.getElementById("latitude").value = (location.coords.latitude); document.getElementBy
navigator.geolocation.getCurrentPosition(GetLocation);
function GetLocation(location) {
document.getElementById("latitude").value = (location.coords.latitude);
document.getElementById("longitude").value = (location.coords.longitude);}
问题是,在我的表中,插入的值显示整数,所有的小数点都用0表示,比如wise 57.0000000,经度也一样,请有人帮我一下,因为我是php的初学者
非常感谢。这与phpMyAdmin有什么关系?您提到将数据插入到表中,但没有说明如何插入数据。显示执行插入的代码以及将数据插入的数据库表的列定义。很抱歉,这是一个php代码错误!谢谢你的评论!