Smitty Posted August 20, 2008 Share Posted August 20, 2008 ok i got this code i am tring to get in a php block the code is for a live help link goes like this <!-- BEGIN Help Center Live Code, Copyright © 2005 Help Center Live. All Rights Reserved --> <div id="div_initiate" style="position:absolute; z-index:1; top: 40%; left:40%; visibility: hidden;"><a href="javascript:Live.initiate_accept();"><img src="http://gamersladders.com/helpcenter/templates/Bliss/images/initiate.gif" border="0"></a><br><a href="javascript:Live.initiate_decline();"><img src="http://gamersladders.com/helpcenter/templates/Bliss/images/initiate_close.gif" border="0"></a></div> <script type="text/javascript" language="javascript" src="http://gamersladders.com/helpcenter/class/js/include.php?live"></script> <!-- END Help Center Live Code, Copyright © 2005 Help Center Live. All Rights Reserved --> I wanna put it in a block like this <div class="bottomrighsidebar"></div> <div class="toprighsidebartitle">Latest Free Agents</div> <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1"> <? //START Latest Free Agents - Created by Icidis - www.botc.co.za/////////////////////////////////////////////////////////////////////////// $latestagents=mysql_query("SELECT freeagents.id, gamename, game FROM freeagents LEFT JOIN ladders ON freeagents.ladder = ladders.id ORDER BY freeagents.id DESC LIMIT 0,6"); while(list($freeagentsuser,$freeagentsgamename,$laddersgame)=mysql_fetch_row($latestagents)){ if($config[cellbgx]==$config[cellbg]){$config[cellbgx]="$config[cellbg2]";}else{$config[cellbgx]="$config[cellbg]";} echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx]'><a href='./freeagents.php?action=viewagent&agent=$freeagentsuser'><span style='color:#FFFFFF;'>$freeagentsgamename <br> $laddersgame</span></a><br /><br /></td></tr>"; } //END Latest Free Agents///////////////////////////////////////////////////////////////////////////////////////////////////////// ?></table> </div> but no matter what i do i can't get it to work....Can anyone help me out here !!!! Link to comment https://forums.phpfreaks.com/topic/120455-making-a-block-in-php-help/ Share on other sites More sharing options...
vbnullchar Posted August 20, 2008 Share Posted August 20, 2008 what do you mean by block? prevent it from displaying? Link to comment https://forums.phpfreaks.com/topic/120455-making-a-block-in-php-help/#findComment-620665 Share on other sites More sharing options...
Smitty Posted August 20, 2008 Author Share Posted August 20, 2008 ya it work show up in the block if i put that first code in the second code Link to comment https://forums.phpfreaks.com/topic/120455-making-a-block-in-php-help/#findComment-621448 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.