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
테이블 구조를 게시 할 수 있습니까? –
코드를 포맷하십시오. 암기는 무엇이든 이해합니다. –