Frischmann Harald: Spalte rechts einbinden

Beitrag lesen

Hallo!

Ich habe ein Problem:
Ich möchte eine Spalte rechts einfügen.
DH
Die Spalte sollte wie die "3 neuesten Links" und die Googelwerbung" ausschauen, aber eben auf der rechten Seite.

In der Index wird angegeben dass left eingefügt werden sollte.
Wenn ich aber die left.php kopiere und umbenenne auf right und in die Index mit iclude implementiere, wird diese eben auch links gestellt.

Der Code der Index.php
---------------------------------
<?php

include("include/dbconnect.php");
include("include/header.php");
include("include/left.php");
include_once("analyticstracking.php");
print ("
<tr><td class='tdhead4' height=20 align=center><b>&nbsp;&nbsp;Herzlich willkommen!</b></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>
<p>");
$sqlt = "SELECT * FROM texte WHERE tid = '1'";
$rest = mysql_query($sqlt);
while($row = mysql_fetch_assoc($rest)) {
$tid = $row['tid'];
$ttext = $row['ttext'];
print ("$ttext");
}
print ("</p>
</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>
<table width=480 bgcolor='#EEEEEE' border=0 cellpadding=0 cellspacing=0 style='border: 1px solid #000000;'>
<tr><td>&nbsp;</td></tr>
<tr><td>
<table width=460 align=center border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=240>
<table width=240 border=0 cellpadding=0 cellspacing=0>");
$sql1 = "SELECT * FROM kategorien ORDER by kid limit 0,11";
$res1 = mysql_query($sql1);
while($row = mysql_fetch_assoc($res1)) {
$kid = $row['kid'];
$kategorie = $row['kategorie'];
$sql1a = "SELECT * FROM eintraege WHERE ekat = '$kid' AND estatus = '1'";
$res1a = mysql_query($sql1a);
$anzahl1 = mysql_num_rows($res1a);
print ("
<tr height=20><td width=10>&nbsp;</td><td width=20><img src='img/add-item.gif' width='14' height='14' border='0'></td>
<td width=200><a href='kat.php?kat=$kid'>$kategorie ($anzahl1)</a></td></tr>
");
}
print ("</table>
</td>
<td width=240>
<table width=240 border=0 cellpadding=0 cellspacing=0>");
$sql1 = "SELECT * FROM kategorien ORDER by kid limit 11,22";
$res1 = mysql_query($sql1);
while($row = mysql_fetch_assoc($res1)) {
$kid = $row['kid'];
$kategorie = $row['kategorie'];
$sql1b = "SELECT * FROM eintraege WHERE ekat = '$kid' AND estatus = '1'";
$res1b = mysql_query($sql1b);
$anzahl2 = mysql_num_rows($res1b);
print ("
<tr height=20><td width=10>&nbsp;</td><td width=20><img src='img/add-item.gif' width='14' height='14' border='0'></td>
<td width=200><a href='kat.php?kat=$kid'>$kategorie ($anzahl2)</a></td></tr>
");
}
print ("
</table>
</td>
</tr>
</table>
</td></tr>
<tr><td>&nbsp;</td></tr>
</table>
</td></tr>

");

include("include/footer.php");
mysql_close($verbindung);

?>
---------------------------------------------------------------

Nun der Code der left.php
------------------------------
<?php
print ("
<table width=700 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=180 valign=top>
<table width=180 border=0 cellpadding=0 cellspacing=0>
<tr><td class='tdhead1'>
<table width=180 border=0 cellpadding=0 cellspacing=0>
<tr><td class='tdhead3' height=20 align=center><b>::: Die 3 neuesten Links :::</b></td></tr>
<tr><td class='tdspace'>&nbsp;</td></tr>");
$sqln = "SELECT * FROM eintraege WHERE estatus = '1' ORDER by ets DESC limit 0, 3";
$resn = mysql_query($sqln);
while($row = mysql_fetch_assoc($resn)) {
$eid = $row['eid'];
$ets = $row['ets'];
$estatus = $row['estatus'];
$eart = $row['eart'];
$eseitenurl = $row['eseitenurl'];
$etitel = $row['etitel'];
$ekat = $row['ekat'];
$eukat = $row['eukat'];
$ebeschreibung = $row['ebeschreibung'];
$escreenurl = $row['escreenurl'];
$efirma = $row['efirma'];
$enachname = $row['enachname'];
$evorname = $row['evorname'];
$eanrede = $row['eanrede'];
$eanschrift = $row['eanschrift'];
$eplz = $row['eplz'];
$eort = $row['eort'];
$eemail = $row['eemail'];
$link = ereg_replace("http://www.", "", $eseitenurl);
print ("<tr><td height=18 align=center><a href='getsite.php?siteid=$eid' target='_blank' class='a2'>$etitel</a></td></tr>");
}
print ("
<tr><td class='tdspace'>&nbsp;</td></tr>
</table>
</td></tr>
<tr><td class='tdspace'>&nbsp;</td></tr>
<tr><td>");
$sqlt = "SELECT * FROM adsense WHERE adsid = '1'";
$rest = mysql_query($sqlt);
while($row = mysql_fetch_assoc($rest)) {
$adsid = $row['adsid'];
$adsblock1 = $row['adsblock'];
print ("$adsblock1");
}
print ("</td></tr>
<tr><td class='tdspace'>&nbsp;</td></tr>
<tr><td class='tdhead1'>
<table width=180 border=0 cellpadding=0 cellspacing=0>
<tr><td class='tdspace'>&nbsp;</td></tr>
<tr><td align=center>");
$sqlt = "SELECT * FROM adsense WHERE adsid = '2'";
$rest = mysql_query($sqlt);
while($row = mysql_fetch_assoc($rest)) {
$adsid = $row['adsid'];
$adsblock2 = $row['adsblock'];
print ("$adsblock2");
}
print ("</td></tr>
<tr><td class='tdspace'>&nbsp;</td></tr>
</table>
</td></tr>
</table>
</td>
<td width=20>&nbsp;</td>
<td width=500 valign=top>
<table width=500 border=0 cellpadding=0 cellspacing=0>
<tr><td class='tdhead1'>
<table width=500 border=0 cellpadding=0 cellspacing=0>
<tr><td>&nbsp;</td></tr>
<tr><td valign=top height=330>
<table width=480 align=center border=0 cellpadding=0 cellspacing=0>
");

?>
----------------------------------------------------------