Einzelnen Beitrag anzeigen
  #47  
Alt 23.04.2003, 08:06:03
Stella Stella ist offline
Anfänger
 
Registriert seit: Mar 2003
Ort: Schwetzingen
Beiträge: 141
hab ich da schon wieder was falsch verstanden?
Bei dem Script stürzt mir mein IE (5.5,2) unter Mac ab.
PHP-Code:
<?
$user = "nina";
$password = "";
$host = "localhost";
$connection = mysql_pconnect($host,$user,$password);

//Tabellenkop
echo "<table border='0' width='100%'>";
echo "<table border='0' width='640' cellspacing='0' cellpadding='0' align=center>";
echo "<tr><td width='485' colspan='3' align='RIGHT' bgcolor='#0F1E37' class='H16' height='24'>KONTAKT&nbsp;</td>";
echo "<td class='H16' width='15' bgcolor='#2c58a2'>&nbsp;</td>";
echo "<td width='140' bgcolor='0F1E37'>&nbsp;</td>";
echo "</tr></table>";
echo "<table border='0' width='100%'>";
echo "<table border='0' width='640' align='center'>";
echo "<FORM method='get' action='$PHP_SELF'>";
echo "<table border='0' width='640' align='center'>";

//Tabelle mit Namen zum Auswählen
if ($action == "")
$SQL = "SELECT name FROM kontakt ORDER BY name";
$result = mysql_db_query("cdhomepage", $SQL);
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td width='200' bgColor='#0F1E37'><img src='/images/transparent.gif' width='1' height='1'></td>";
echo "<td width='300' bgColor='#2c58a2' class='H16'><INPUT type='checkbox' name='kontakt' value="".$row['name']."">".$row['name']."</td>";
echo "<td width='140' bgColor='#0F1E37'><img src='/images/transparent.gif' width='1 height='1'></td>";
echo "</tr>";
$found++;
}

//Tabelle zum Anzeigen der Namen und Kontakte
$result=mysql_query("SELECT * FROM kontakt WHERE name='".$_REQUEST['name']."' ORDER BY name");
while($row = mysql_fetch_array($result))
{
echo "<tr><td width='200' bgColor='#0F1E37'></td>";
echo "<td width='300' bgColor='#2c58a2' class='H16'>Name: ".$row['name']."<br>Abteilung: ".$row['abteilung']."<br>"."Telefon: ".$row['telefon']."<br>"."Handy: ".$row['handy']."<br>"."Fax: ".$row['fax']."</td>";
echo "<td width='140' bgColor='#0F1E37'><img src='/images/transparent.gif' width='1' height='1'></td></tr>";
}

//Tabelle mit Copyright
echo "<tr>";
echo "<td width='200' bgColor='#0F1E37'><img src='/images/transparent.gif' width='1' height='1'></td>";
echo "<td width='300' bgColor='#2c58a2' class='H16'><INPUT type=submit name='Liste erstellen'></td>";
echo "<td width='140' bgColor=0F1E37><img src='/images/transparent.gif' width='1' height='1'></td>";
echo "</tr>";
echo "</FORM>";
echo "<table border='0' width='100%'>";
echo "<table border='0' cellPadding='0' cellSpacing='0' width='640' align='center'>";
echo "<tr height='30'>";
echo "<td width='200' height='4'><img src='/images/transparent.gif' width='1' height='4'></td>";
echo "<td width='300' height='4'></td>";
echo "<td width='140' height='4'></td>";
echo "</tr>";
echo "<tr>";
echo "<td width='200' bgColor='#0F1E37'><img src='/images/transparent.gif' width='1' height='1'></td>";
echo "<td width='300' bgColor='#2c58a2' class='A10' align='center'>"Copyright "."&copy; "."2001 ColorDruck Leimen GmbH"</td>";
echo "<td width='140' bgColor='#0F1E37'><img src='/images/transparent.gif' width='1' height='1'></td>";
echo "</tr>";
echo "<tr height='4'>";
echo "<td width='200' height='4'><img src='/images/transparent.gif' width='1' height='4'></td>";
echo "<td width='300' height='4'></td>";
echo "<td width='140' height='4'></td>";
echo "</tr>";
echo "<tr height='8'>";
echo "<td width='200' bgColor='#0F1E37' height='8'><img src='/images/transparent.gif' width='1' height='8'></td>";
echo "<td width='300' height='8' bgColor='#2c58a2'><img src='/images/transparent.gif' width='1' height='8'></td>";
echo "<td width='140' height='8' bgColor='#0F1E37'><img src='/images/transparent.gif' width='1' height='8'></td>";
echo "</tr>";
echo "<tr height='3'>";
echo "<td width='200' height='3'><img src='german/images/transparent.gif' width='1' height='3'></td>";
echo "<td width='300' height='3'></td>";
echo "<td width=140 height='3'></td>";
echo "</tr>";
echo "<tr height='4'>";
echo "<td width='200' bgColor='#0F1E37' height='4'><img src='/images/transparent.gif' width='1' height='4'></td>";
echo "<td width='300' bgColor='#2c58a2' height='4'><img src='/images/transparent.gif' width='1' height='4'></td>";
echo "<td width='140' bgColor='#0F1E37' height='4'><img src='/images/transparent.gif' width='1' height='4'></td>";
echo "</tr>";
echo "<tr height='3'>";
echo "<td width='200' height='3'><img src='/images/transparent.gif' width='2' height='2'></td>";
echo "<td width='300' height='3'></td>";
echo "<td width='140' height='3'></td>";
echo "</tr>";
echo "<tr height='2'>";
echo "<td width='200' bgColor=0F1E37 height='2'><img src='/images/transparent.gif' width='2' height='2'></td>";
echo "<td width='300' bgColor=#2c58a2 height='2'><img src='/images/transparent.gif' width='2' height='2'></td>";
echo "<td width='140' bgColor=0F1E37 height='2'><img src='/german/images/transparent.gif' width='2' height='2'></td>";
echo "</tr>";
echo "</table>";
echo "</table>";
?>
Habe ich zuviele echo's verwendet oder woran könnt es liegen?

LG Nina
__________________
Jeder Anfang ist schwer...
Mit Zitat antworten