You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
$result = mysql_query("SELECT DISTINCT profile.profileid, name, class, tel FROM profile, record WHERE profile.profileid = record.profileid AND profile.status = ".$CurrentStatus);
while($row = mysql_fetch_array($result))
{
$subresult = mysql_query("SELECT * FROM record WHERE profileid = ".$row["profileid"]." AND status = ".$CurrentStatus);
$row2 = mysql_fetch_array($subresult);
$r1 = $row2["grade"];
$row2 = mysql_fetch_array($subresult);
$r2 = $row2["grade"];
$tmpstatus = 0 - $CurrentStatus;
if (($r1 == 1)&&($r2 == 1))
mysql_query("UPDATE profile SET status = ".$tmpstatus." WHERE profileid = ".$row["profileid"]);