<?php session_start(); include("../FENGZHUANG/DBDA.class.php"); $db = new DBDA(); = $_GET["code"]; $sql = "update userflow set towhere=towhere+1 where ids='{$code}'"; //使流程向下走 $db->Query($sql,0); = "select * from userflow where ids='{$code}'"; $arr = $db->Query($sql); = = "select count(*) from flowpath where code='{$lcdh}'"; ($tw>=$count) { $sql = "update userflow set isok=1 where ids='{$code}'"; //如果结束了流程,将isok项改为结束。 $db->Query($sql,0); } header("location:shenhe.php");