Zend Framework Erro na consulta
Pessoal estou fazendo uma consulta porem esta dando erro
alguem poderia me dar uma ajudinha ae?
<?php
class Location extends Zend_Db_Table_Abstract
{
public function geolocation($ip)
{
$ipnum = sprintf("%u", ip2long($ip));
$select = $this->select();
$select->from('geo_blocks')
->where($ipnum,'?>=ip_start')
->orWhere($ipnum,'?<=ip_end');
$dados = $this->fetchRow($select);
$id = $dados["location_id"];
$orselect = $this->select();
$orselect->from('location')
->where('locId =?',$id );
return $this->fetchRow($orselect);
}
}Discussão (1)
Carregando comentários...