<?php
  require("/var/www/betacom/Comment.php");
  $comment=new Comment();
  $arr=$comment->viewcontent();  session_start();
  $_SESSION["$arr"]=$arr;  echo "<script Language=\"JavaScript\">window.location='/betacom/showlist.php'</script>";   
?>
?>//viewcontent()是Comment类下的方法,用来操作数据库,返回值是数组请问是否可以如上面操作将查询到的数据$arr存放到 $_SESSION["$arr"]里面???谢谢!!!本人结贴率%100