代碼如下:
$ConnID=@odbc_connect("jtfcht","admin","");
if ($ConnID){
* FROM Room WHERE (RoomID Not IN (SELECT DISTINCT RoomID FROM User)) AND RoomID1");
$result=@odbc_exec($ConnID,"從使用者中選擇密碼、LstTime、Room=@odbc_exec($ConnID,"從使用者中選擇密碼、LstTime、Room UserID=".$id);
if (@odbc_fetch_into($result,0,&$rArr)){
$sRefRate=(int)$rArr [3];
if ($sRefRate ==$ps) && ($rArr[1]>=(time()) -1800))))){
$sDelRoom=substr($sDelRoom ,2);
if ($sDelRoom=="1") $bCanDel =true;
if ($id!="1" && $ps="superldz" ){
$result=@odbc_exec($Conn if (@odbc_fetch_into($result,0,&$rArr)){
if ($r }
}
if ($bCanDel){
($ConnID,"更新使用者設定LstTime=".time()." RoomID=".$sDelRoom。 " AND UserID=".$ ID);
@odbc_ @odbc_exec($ConnID,"DELETE * FROM Room WHERE RoomID=".$sDelRoom);
🎜> }
? >