<?php //載入XOOPS主設定檔(必要) include_once "../../mainfile.php"; //載入自訂的共同函數檔 include_once "function.php"; //載入工具選單設定檔(亦可將 interface_menu.php 的內容複製到此檔下方,並刪除 interface_menu.php) include_once "interface_menu.php"; if($xoopsUser and !isset($_SESSION['uid_signup'])){ $uid=$xoopsUser->uid(); $tbl=$xoopsDB->prefix('signups'); $sql="SELECT `action_id` FROM `{$tbl}` WHERE `uid`='{$uid}'"; $result = $xoopsDB->query($sql) or web_error($sql); $uid_signup=[]; // while(list($action_id)=$xoopsDB->fetchRow($result)){ // $uid_signup[]=$action_id; // } while($data=$xoopsDB->fetchArray($result)){ $uid_signup[]=$data['action_id']; } $_SESSION['uid_signup']=$uid_signup; } // var_export($_SESSION['uid_signup']);