cwdcwdcwd 访问次数 : 11 注册日期 : 07-07-06 14:18 上次访问 : 09-10-29 21:05 |
先说说我的环境: KISS 0.2各组件的版本: Apache 2.2.2 with mod_ssl/2.2.0 mod_php5/5.1.1 OpenSSL/0.9.8a PHP 5.1.4 with(mbstring,soap,gd2,pdo,sqlite,firebird,mysql,mysqli,postgresql) MySQL 5.0.21 testlink版本 1.6.3 ------- 我的安装步骤: 1、环境装好后 2、使用testlink的自动安装 安装成功 问题: 输入http://127.0.0.7/testlink/index.php后浏览器输出: 0) { $cAvailablePlans = 0; // count the available plans while ($myrow = mysql_fetch_row($result)) { //Block of code will determines if the user has the appropriate rights to view available projects $sqlProjRights = "select projid from projrights where userid=" . $userID . " and projid=" . $myrow[0]; $projRightsResult = do_mysql_query($sqlProjRights); $myrowProjRights = mysql_fetch_row($projRightsResult); //If the user has the rights to the project/test plan show it if($myrowProjRights[0] == $myrow[0]) { //This code block checks to see if the user has already selected //a project once before and sets the default to that.. Bug 11453 // If this is the first plan we're displaying, // and no session project has been set yet, then set it. //20050810 - am - added check if a testPlanID is set if ($cAvailablePlans == 0 && (!isset($_SESSION['testPlanId']) || !$_SESSION['testPlanId'])) { $_SESSION['testPlanId'] = $myrow[0]; $_SESSION['testPlanName'] = $myrow[1]; } $cAvailablePlans++; if($myrow[0] == $_SESSION['testPlanId']) { //did I choose this selection last array_push($arrPlans, array( 'id' => $myrow[0], 'name' => $myrow[1], 'notes' => $myrow[2], 'active' => $myrow[3], 'selected' => 'selected="selected"')); } else { //Else just display the value array_push($arrPlans, array( 'id' => $myrow[0], 'name' => $myrow[1], 'notes' => $myrow[2], 'active' => $myrow[3], 'selected' => '')); } } }//END WHILE }//end testplan count return $arrPlans; } /** * get count Test Plans available for user * * 20050810 - fm * changes need due to ACTIVE FIELD type change * interface changes * */ function getCountTestPlans4User($userID) { $sql = "SELECT count(project.id) FROM project,projrights WHERE active=1" . " AND projid=project.id AND userid=" . $userID; $result = do_mysql_query($sql); if ($result){ return mysql_result($result, 0); } else { return null; } } /** * get count 这样的字符满页,请问是什么问题,谢谢了。实在要崩溃了... ... |
回帖 |