日期:2014-05-16 浏览次数:20444 次
$query ="select * from #@__arctype where isbaike=1";
$this->dsql->Execute("bkarry",$query);
$bkarry=array();
session_start();
if(!session_is_registered("bkarry")){
while($row2 = $this->dsql->GetArray("bkarry"))
{
$bkarry[]=$row2;
}
$bkarry2=serialize($bkarry);
$_SESSION['bkarry']=$bkarry2;
}else{
$bkarry=unserialize($_SESSION['bkarry']);
}
//unset($_SESSION['bkarry']);
//var_dump($bkarry);
while($row = $bkarry)
{ var_dump($row);
}
exit();
while($row = $bkarry) {
var_dump($row);
}
session_start();
$query ="select * from #@__arctype where isbaike=1";
if(! isset($_SESSION['bkarry'])) {
$this->dsql->Execute("bkarry",$query);
while($row2 = $this->dsql->GetArray("bkarry"))
{
$_SESSION['bkarry'][] = $row2;
}
}
$bkarry =& $_SESSION['bkarry'];