php - Mysql query - couldn't add single quotes within the another single quotes -


set @pid = "$memberid = getloggedid();  $ipid = $globals['mysql']->getone('select `pid` `profiles` `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 private teacher </button></div>'; }"; 

here button displayed.but doesn't work.

set @pid = $memberid = getloggedid();  $ipid = $globals['mysql']->getone("select `pid` `profiles` `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 private teacher </button> </div>'; } 

Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -