function get_place_info1($latitude,$longitude)
{
$t=round($latitude,4);
$t1=round($longitude,4);
$this->db->select('name');
$this->db->from('place');
$this->db->where(round('Latitude',4), $t);
$this->db->where(round('Longitude',4),$t1);
$q = $this->db->get();
$res = $q->result();
return $res;
}
$緯度和$經度是雙,我想圓他們,但是當我執行它給我的錯誤 錯誤在PHP中陳述
Error Number: 1054
Unknown column 'name' in 'field list'
SELECT `name` FROM (`place`) WHERE `0` = 33.5041 AND `0` = 36.3033
Filename: C:\wamp\www\tourism\system\database\DB_driver.php
Line Number: 330
有什麼錯呢?
「name」列似乎不存在於「place」表中。 – ninetwozero
你可以發佈你的表格結構嗎? –
請格式化您的代碼。不能理解任何事情 – 2013-07-10 11:59:13