Jump to content
MakeWebGames

Help Again Please with My right Sidebar!


Joel

Recommended Posts

Ok, I have a problem with my right sidebar, That problem is when i click on Gang Wars the Right side bar moves away from my template and i dont no why its happening, But when i click on anything else like (Gangs, Crimes, Shops, Explore, View User and everything else, It works Fine, Ill show you some Screens, So you Understand what i mean:

On Explore:

problem3vn9.png

As you can see Above theres no Problem with the Right Sidebar

 

On Gang Wars:

problem4al5.png

As you can see Above the Right Sidebar has Moved to the Top Right Corner,

Im not sure why its doing this because i dont have no problems with the right sidebar on Anything else,

Heres My gangwars.php

<?php
include "globals.php";
print "<h3> Gang Wars</h3>
<table width=75% cellspacing=1 class='table'>";
$q=$db->query("SELECT w.*,g1.gangNAME as declarer, g1.gangRESPECT as drespect, g2.gangNAME as defender, g2.gangRESPECT as frespect FROM gangwars w LEFT JOIN gangs g1 ON w.warDECLARER=g1.gangID LEFT JOIN gangs g2 ON w.warDECLARED=g2.gangID WHERE g1.gangNAME != '' AND g2.gangNAME != ''");
if($db->num_rows($q) > 0)
{
while($r=$db->fetch_row($q))
{
print "<tr> <td width=45%>[url='gangs.php?action=view&ID={$r[']{$r['declarer']}[/url] [{$r['drespect']} respect]</a></td> <td width=10%>vs.</td> <td width=45%>[url='gangs.php?action=view&ID={$r[']{$r['defender']}[/url] [{$r['frespect']} respect]</a></td> </tr>";
}
}
else
{
print "</table>There are currently no gang wars in progress.";
}
print "</table>"; 

$h->endpage();
?>

 

Please tell me why this is Happening, Or Explain whats Wrong,

Thanks Very Much if you no what the Problem is :)

And sorry about the Images being to Big!

Link to comment
Share on other sites

Re: Help Again Please with My right Sidebar!

Well as i could always say... The code is not clean enough to quite understand it better...

But i've had that problem. You should check your script for extra </td>'s in the code. Make your tables like i showed them... Example:

 

<table class="table" width="75%" border="1" cellspacing="0">
<tr>
  <th>Title Name</th>
  <th>User</th>
</tr>
<tr>
  <td>Game Name</td>
  <td>Kyle</td>
</tr>
<tr>
  <td>Game Name</td>
  <td>Adajao</td>
</tr>
</table>

 

You will soon notice you will like to code like this and start using it more and more often.

Link to comment
Share on other sites

Re: Help Again Please with My right Sidebar!

Thanks alot Killah,

Your such a great Mate to me,

Well one off my Best Mates,

This guy is really helpfull,

He solved most off my Problems and helped me a lot

Thanks Mate :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...