function UpdateScoreInfo($paperName, $LScore, $HScore, $newLScore, $newHScore, $newScoreInfo)
{
    include_once 'makePaperBll.php';
    $paperID = GetPaperID($paperName);
    $scoreID = GetScoreID($paperName, $LScore, $HScore);
    if (IsScoreConflict($paperName, $LScore, $HScore) == 1) {
        $scoreInfo = $newScoreInfo;
        UpdateScore($scoreID, $paperID, $LScore, $HScore, $scoreInfo);
    }
    return 1;
}
Beispiel #2
0
//打印查询数据
foreach ($result as $single)
{
    foreach ($single as $unit)
    {
        echo $unit."   ";
    }
    echo "<br>"  ;
}
*/
//InsertPaper("adddbcd","hafha","hardeasy",1,"imddage");
//DeletePaper(2);
//UpdatePaper(4,"ffff","hafha","hardeasy",1,"imddage");
/****************************************************
 *
 * @chen
 * scoreDal 测试
 *
 ****************************************************/
/*
InsertScore(5,10,30,"you healthy");
InsertScore(5,30,50,"you sick");
InsertScore(5,50,60,"you bad");
InsertScore(5,70,80,"you happy");
InsertScore(5,90,100,"you die");
*/
//echo InsertScore(5,10,30,"you healthy");
echo UpdateScore(80, 5, 10, 30, "you healthy");
//UpdateScore(2,4,30,50,"you changed");
//$result = FindScoreByScoreID(2);
//$result = FindScoreByPaperID(4);