Jump to content

Making a block in php (HELP!!)


Smitty

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.