Jump to content

AndrewVlcek

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by AndrewVlcek

  1. Well, that was easy. Thanks again. Thats the 2nd problem this forum has helped me on, and helped very quickly. Thanks!
  2. I have a script for a gaming site that lists free agents looking for a team to play on. My free agents are showing up but not centered. I cant seem to figure out how to center them. I would also like it to be valigned to the top of the table. Right now its in the middle. Here is the code: <div class='maincontentbg'> <table align="center" valign="top" width="195px" border="0" cellspacing="3" cellpadding="0"> <tr> <td valign="top"> <div align='center'> <div class="htopspace1">Latest Free Agents</div> <table width="195px" height="105px" valign="top" align="center" bgcolor="#0e0e0e" cellspacing="0"> <?php $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[cellbg2]) { $config[cellbgx]="$config[cellbg2]"; } else { $config[cellbgx]="$config[cellbg2]"; } echo"<tr bgcolor='$config[altcolora]'><td background='$config[cellbgx2]'><a href='./freeagents.php?action=viewagent&agent=$freeagentsuser'><span style='color:#FFFFFF;'>$freeagentsgamename $laddersgame</span></a></td></tr>"; } ?> </div> </table> How can I center the list of free agents and align it to the top? Thanks, Andrew
  3. I got it! Thanks soooooo much. I have been trying to figure this out for a week.
  4. I am trying to add new code to my site and I am having some troubles. I am very new to PHP. I have this code which works ok: <? if($index == yes){ echo" <div class='maincontentbg'> <table width=\"600\" border=\"0\" cellspacing=\"2\" cellpadding=\"1\"> <tr> <td>Latest Free Agents</td> <td>Spolight Profile</td> </tr> </table> </div>"; } ?> Where it says Latest Free Agents I want this script in that table cell: <div class="bottomrighsidebar"></div> <div class="toprighsidebartitle">Latest Free Agents</div> <div class="toprighsidebarbg"><table width="90%" align="center" bgcolor="#000000" cellspacing="1"> <? $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>"; } ?></table> </div> How do I merge those 2 scripts? Thanks, Andrew
×
×
  • 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.