• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

brauche hilfe bei if(!isset($site) tabellen

Status
Für weitere Antworten geschlossen.

marco0

Neues Mitglied
Guten Morgen

also ich will eine seite machen mit (if(!isset($site)) $site="news" :]
mein problem ist wenn ich eine news schreibe verschiebt sich der rechte login content mit runter, ich habe alles in tabellen gesetzt.. ich habe alle meine möglichkeiten ausgeschöpft weiss einfach nicht wodran es liegen kann :? pls help

<?php
include("_mysql.php");
include("_settings.php");
include("_functions.php");
?>
<HTML>


<HEAD>
<TITLE>titel</TITLE>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="">
<meta name="description" content="titel">
<link rel="stylesheet" type="text/css" href="cp.css">
<link rel="shortcut icon" href="favicon.ico">
<script language="JavaScript" src="bbcodes.js" type="text/JavaScript"></script>
<script language="JavaScript" src="functions.js" type="text/JavaScript"></script>
<script language="JavaScript1.2" src="preloader.js" type="text/JavaScript"></script></head>

<BODY onload="preloadImages()" BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 BACKGROUND="bg.gif">

<CENTER>
<TABLE WIDTH=853 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<td ROWSPAN="9" valign="top">
<table width="19" height="853" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD ROWSPAN=9>
bg_connection_left.gif
</TD>
</tr>
</table>
<td COLSPAN="2" valign="top">
<table width="816" height="171" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD COLSPAN=2></TD>
</tr>
</table>
<td ROWSPAN="9" valign="top">
<table width="18" height="853" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD ROWSPAN=9>
bg_connection_right.gif
</TD>
</tr>
</table>
</TR>
<TR>
<td COLSPAN="2" valign="top">
<table width="816" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD COLSPAN=2>
menu.gif
</TD>
</tr>
</table>
</TR>
<TR>
<td bgcolor="000000" valign="top">
<table width="518" height="133" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD><embed name="head" src="SWF/head.swf" quality="high" base="" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" height="133" width="518"></TD>
</tr>
</table>
<td valign="top">
<table width="298" height="133" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD>
sub_menu.gif
</TD>
</tr>
</table>
<TR>
<td valign="top">
<table width="518" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD>
content_top_spacer.gif
</TD>
</tr>
</table>
<td valign="top">
<table width="298" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD>
content2_top_spacer.gif
</TD>
</tr>
</table>
</TR>
<TR>
<td ROWSPAN="3" bgcolor="#FFFFFF" valign="top">
<table width="518" height="326" border="0" cellpadding="0" cellspacing="0">
<tr vlaign="top">
<TD ROWSPAN=3 background="DESIGN/main_content.gif" WIDTH=518 HEIGHT=326 ALT="">




<table valign="top" width="98%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20">

<?
if(!isset($module)) $module="news";
include($module.".php");
?>

</td>
</tr>
</table>




</tr>
</table>
<tr>
</tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="298">
<tr>
<TD width="298" height="161" style="background-image:url(DESIGN/login_content.gif); background-repeat: repeat-y; padding-left: 0px">


<? include("login.php"); ?>


</TD>
</TR>
<TR>
<TD background="DESIGN/between_spacer.gif" WIDTH=298 HEIGHT=8 ALT="" title=""></TD>
</TR>
<TR>
<TD background="DESIGN/current_content.gif" WIDTH=298 HEIGHT=157 ALT="" title=""></TD>
</tr>
</table>
</TR>
<TR>
<td valign="top" bgcolor="#FFFFFF">
<table width="518" height="14" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD background="DESIGN/bottom_blocks_left.gif" WIDTH=518 HEIGHT=14 ALT=""></TD>
</tr>
</table>
<td valign="top">
<table width="298" height="14" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD background="DESIGN/bottom_blocks_right.gif" width=298 height=14 alt=""></TD>
</tr>
</table>
</TR>
<TR>
<td valign="top">
<table width="518" height="166" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD style="padding: 7px;" valign="top"></TD>
</tr>
</table>
<td valign="top">
<table width="298" height="166" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD></TD>
</tr>
</table>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>

image1.jpg
 
Werbung:
ich kenne dein problem.
Code:
<td width="deine breite" align="left" valign="top" bordercolor="1">

dies ist für den Tabelleninhalt zuständig:
algin ist für links rechts und zentriert
valgin oben unten und mitte top=oben

wen du mit dreamweaver arbeitest ist dies noch einfacher.

sollte dieses problem dan noch immer sein, lag es doch nicht an dem :lol:
 
Werbung:
hmmmmm, das problem ist im grunde einfach. müsste zuhause dies mal genauers anschauen. ev habe ich noch ne idee
 
Werbung:
also das mit dem div's ist glaub ich nicht so mein fall, da würd ich glaub ich eine woche dran sitzen :)
 
probier mal das
Code:
<table width="600" border="1" align="top" cellpadding="0" cellspacing="0">
  <tr>
    <td align="left" valign="top"></td>
  </tr>
</table>
sonst vermute ich, dass es irgendetwas mit der reihenfolge des ablaufes zutuen hat. has du den php script in einer tabelle eingepackt??
 
Werbung:
hat auch nicht geklappt!

ja hab ich in einer tabelle gestellt.. schon ziemlich merkwürdig
 
Ich glaube dann hilft nur noch dass du den code stück für stpck "zerlegst und unter die lupe nimmst...
Am besten baust du dir immer wieder kommentare rein und überprüfst dann anhande der kommentare
 
Werbung:
habe dein code analysiert.
wen er so aussieht
Code:
<?php
include("_mysql.php");
include("_settings.php");
include("_functions.php");
?>
<HTML>


<HEAD>
<TITLE>titel</TITLE>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="">
<meta name="description" content="titel">
<link rel="stylesheet" type="text/css" href="cp.css">
<link rel="shortcut icon" href="favicon.ico">
<script language="JavaScript" src="bbcodes.js" type="text/JavaScript"></script>
<script language="JavaScript" src="functions.js" type="text/JavaScript"></script>
<script language="JavaScript1.2" src="preloader.js" type="text/JavaScript"></script></head>

<BODY onload="preloadImages()" BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 BACKGROUND="bg.gif">

<CENTER>
<TABLE WIDTH=853 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<td ROWSPAN="9" valign="top">
<table width="19" height="853" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD ROWSPAN=9 align="left" valign="top">[img]DESIGN/bg_connection_left.gif[/img]</TD>
</tr>
</table>
<td COLSPAN="2" valign="top">
<table width="816" height="171" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD COLSPAN=2 align="left" valign="top"></TD>
</tr>
</table>
<td ROWSPAN="9" valign="top">
<table width="18" height="853" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD ROWSPAN=9 align="left" valign="top">[img]DESIGN/bg_connection_right.gif[/img]</TD>
</tr>
</table>
</TR>
<TR>
<td COLSPAN="2" valign="top">
<table width="816" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD COLSPAN=2 align="left" valign="top">[img]DESIGN/menu.gif[/img]</TD>
</tr>
</table>
</TR>
<TR>
<td bgcolor="000000" valign="top">
<table width="518" height="133" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD align="left" valign="top"><embed name="head" src="SWF/head.swf" quality="high" base="" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" height="133" width="518"></TD>
</tr>
</table>
<td valign="top">
<table width="298" height="133" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD align="left" valign="top">[img]DESIGN/sub_menu.gif[/img]</TD>
</tr>
</table>
<TR>
<td valign="top">
<table width="518" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD align="left" valign="top">[img]DESIGN/content_top_spacer.gif[/img]</TD>
</tr>
</table>
<td valign="top">
<table width="298" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD align="left" valign="top">[img]DESIGN/content2_top_spacer.gif[/img]</TD>
</tr>
</table>
</TR>
<TR>
<td ROWSPAN="3" bgcolor="#FFFFFF" valign="top">
<table width="518" height="326" border="0" cellpadding="0" cellspacing="0">
<tr vlaign="top">
<TD WIDTH=518 HEIGHT=326 ROWSPAN=3 align="left" valign="top" background="DESIGN/main_content.gif" ALT="">




<table valign="top" width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" align="left" valign="top">

<?
if(!isset($module)) $module="news";
include($module.".php");
?>

</td>
</tr>
</table>




</tr>
</table>
<tr>
</tr>
<td valign="top"><table cellpadding="0" cellspacing="0" border="0" width="298">
  <tr>
    <TD width="298" height="161" align="left" valign="top" style="background-image:url(DESIGN/login_content.gif); background-repeat: repeat-y; padding-left: 0px">

        <? include("login.php"); ?>
        

    </TD>
  </TR>
  <TR>
    <TD WIDTH=298 HEIGHT=8 align="left" valign="top" background="DESIGN/between_spacer.gif" title="" ALT=""></TD>
  </TR>
  <TR>
    <TD WIDTH=298 HEIGHT=157 align="left" valign="top" background="DESIGN/current_content.gif" title="" ALT=""></TD>
  </tr>
</table>
</TR>
<TR>
<td valign="top" bgcolor="#FFFFFF">
<table width="518" height="14" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD WIDTH=518 HEIGHT=14 align="left" valign="top" background="DESIGN/bottom_blocks_left.gif" ALT=""></TD>
</tr>
</table>
<td valign="top">
<table width="298" height="14" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD width=298 height=14 align="left" valign="top" background="DESIGN/bottom_blocks_right.gif" alt=""></TD>
</tr>
</table>
</TR>
<TR>
<td valign="top">
<table width="518" height="166" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD align="left" valign="top" style="padding: 7px;">[url="http://www.macromedia.com/go/getflashplayer_de"][img]DESIGN/MISC/get_flash_player.gif[/img][/url]</TD>
</tr>
</table>
<td valign="top">
<table width="298" height="166" border="0" cellpadding="0" cellspacing="0">
<tr>
<TD align="left" valign="top"></TD>
</tr>
</table>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
und das problem immernoch besteht, liegt es an deinem php-script.kontrolliere dan mal dein login.php
 
@marco0: Bitte tu uns den gefallen, und Strukturiere deinen code, dann wäre es Übersichtlicher und, ich bin auch der meinung wie easy-web
 
Werbung:
Status
Für weitere Antworten geschlossen.
Zurück
Oben