获取pg_num_rows = 1
但无法获取行
$recordset = $obj_d->search_routing($this);
if(pg_num_rows($recordset)>0)
{
if($row = pg_fetch_row($recordset))
{
$this->diallingprefix=$row[2];
$this->forceroute=$row[5];
}
}
答案 0 :(得分:0)
使用
while( $row = pg_fetch_row($recordset) ) { }