-3
SET @pid = "$memberID = getLoggedId(); 
$iPid = $GLOBALS['MySQL']->getOne('SELECT `Pid` FROM `Profiles` WHERE `ID` = '.$memberID.' LIMIT 1');

if($iPid==1){
    echo '<div id=# style=margin:10px 10px 0; overflow: hidden;><button class=bx-btn bx-btn-img onclick = window.open(inviteteacher.php,_self) > Study with Private Teacher </button></div>';
}";

这里显示了按钮。但这不起作用。

4

1 回答 1

0
SET @pid = $memberID = getLoggedId();

$iPid = $GLOBALS['MySQL']->getOne("SELECT `Pid` FROM `Profiles` WHERE `ID` = '$memberID' LIMIT 1");

if($iPid==1){
    echo '<div id="id" style="margin:10px 10px 0;" overflow: "hidden;">
   <button class="bx-btn bx-btn-img" onclick = "window.open(inviteteacher.php,_self)"> Study with Private Teacher </button>
</div>';
}
于 2013-08-09T06:41:19.497 回答