Ulf: Fehler in Zeile 12: Objekt unterstützt ...

Hallo zusammen, ich habe da ein Problem:

Ich habe in meinem Quelltext in Zeile 2 irgendeinen Fehler.
Lt. IE6 auf NT4 SP6 unterstützt das Objekt diese Eigenschaft oder Methode nicht. Nehme ich die Angaben vor Submit 'raus wird das Fenster 2x geöffnet.

<?
include "../includes/service.inc.php";
session_start();
?>
<html>
<head>
<meta name="author" content="Frank Groetzner/Ulf Wuestefeld">
<title>Blackboard</title>
<link rel="stylesheet" href="../service.css" type="text/css">
<style type="text/css">
a:link {font-weight:bold; color:black; font-size:x-small; font-style:italic;}
</style>
</head>
<body>

Hier beginnt lt. Browser die Zeile 12 <<<<<

<?
$kat_id=$HTTP_POST_VARS[kategorie_id];
if($kat_id=="")
{
$query = "select * from blackboard ORDER BY datum DESC";
}
else
{
$query = "select * from blackboard WHERE $kat_id=bb_a_id ORDER BY datum DESC";
}
$link = mysql_connect("$host:$port","$user","$pass");
mysql_select_db("stua",$link);
$result = mysql_query($query,$link);
$num = mysql_numrows($result);
print("<br>");
print("<center><table width=75% border=0 bgcolor='lightgrey'>");
for ($i = 0; $i < $num; $i++)
{
$row = mysql_fetch_array($result);
$query_author = "select * from user WHERE $row[author_id]=u_id";
$result_author = mysql_query($query_author,$link);
$row_author = mysql_fetch_array($result_author);
$query_kat = "select * from bb_auswahl WHERE $row[bb_a_id]=bb_a_id";
$result_kat = mysql_query($query_kat,$link);
$row_kat = mysql_fetch_array($result_kat);
echo "<tr>";
echo "<td colspan=3><hr noshade style='height:2px; color:darkblue;'></td>";
echo "</tr>";
echo "<tr>";
$tag=date(d,$row[datum]);
$monat=date(m,$row[datum]);
$jahr=date(Y,$row[datum]);
$stunde=date(H,$row[datum]);
$minute=date(i,$row[datum]);
$sekunde=date(s,$row[datum]);
echo "<th align=left width=20%><font size=-1 color=black>$tag.$monat.$jahr<br>$stunde:$minute:$sekunde</font></th>";
echo "<th align=left width=80%><font size=-1 color=black>Kategorie: $row_kat[kategorie]<br>$row[titel]</font></th>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=3><hr noshade style='height:1px; color:darkgray;'></td>";
echo "</tr>";
echo "<tr>";
echo "<td><font color=black>$row_author[name], $row_author[vname]<br><font size=-1><a href='mailto:$row_author[email]?subject=Board: $row[titel]'>mail</a></font></a></font></td>";
echo "<td><font color=black>$row[angebot]</font></td>";
echo "<td><form name='loeschen' action='board_del.php' method='post' target='_blank'><input type=hidden name='loeschen' value=$row[bb_id]><input type=image src='..\images\loeschen.jpg' height=30 width=75 name='del' alt='Eintrag löschen' onClick='document.loeschen.submit()'></form><form name='update' action='board_upd.php' method='post' target='_blank'><input type=hidden name='update' value=$row[bb_id]><input type=image src='..\images\bearbeiten.jpg' heigth=26 width=75 name='upd' alt='Eintrag bearbeiten' onClick='document.update.submit()'></form></td>";
echo "</tr>";
if(($row[author_id]==$_SESSION[u_id]) OR (($_SESSION[gruppe]==$admin_id) OR ($_SESSION[gruppe]==$master_id)))
{
echo "<tr>";
echo "<td colspan=3><hr noshade style='height:1px; color:darkgray;'></td>";
echo "</tr>";
echo "<tr>";
echo "</center></td>";
echo "</tr>";
}
if(($i+1)==$num)
{
echo "<tr>";
echo "<td colspan=3><hr noshade style='height:2px; color:darkblue;'></td>";
echo "</tr>";
}
}
print("</table></center>");
mysql_close($link);
?>
</body>
</html>

Im Browser sieht das dann so aus:

<html>
<head>
<meta name="author" content="Frank Groetzner/Ulf Wuestefeld">
<title>Blackboard</title>
<link rel="stylesheet" href="../service.css" type="text/css">
<style type="text/css">
a:link {font-weight:bold; color:black; font-size:x-small; font-style:italic;}
</style>
</head>
<body>
<br><center><table width=75% border=0 bgcolor='lightgrey'><tr><td colspan=3><hr noshade style='height:2px; color:darkblue;'></td></tr><tr><th align=left width=20%><font size=-1 color=black>17.09.2003<br>09:05:16</font></th><th align=left width=80%><font size=-1 color=black>Kategorie: Bieten<br>Zwei Festplatten a 2 GB</font></th></tr><tr><td colspan=3><hr noshade style='height:1px; color:darkgray;'></td></tr><tr><td><font color=black>Oehmig, Uwe<br><font size=-1><a href='mailto:uwe.oehmig@stua-du.nrw.de?subject=Board: Zwei Festplatten a 2 GB'>mail</a></font></a></font></td><td><font color=black><font color='gray'>Preis (VB) je Platte : 80€</font><br>
Preis (VB) je Platte : 25€
<br>Bearbeitet von Wüstefeld, Ulf (Wucher ist verboten *g*)</font></td><td><form name='loeschen' action='board_del.php' method='post' target='_blank'><input type=hidden name='loeschen' value=4><input type=image src='..\images\loeschen.jpg' height=30 width=75 name='del' alt='Eintrag löschen' onClick='loeschen.submit()'></form><form name='update' action='board_upd.php' method='post' target='_blank'><input type=hidden name='update' value=4><input type=image src='..\images\bearbeiten.jpg' heigth=26 width=75 name='upd' alt='Eintrag bearbeiten' onClick='update.submit()'></form></td></tr><tr><td colspan=3><hr noshade style='height:1px; color:darkgray;'></td></tr><tr></center></td></tr><tr><td colspan=3><hr noshade style='height:2px; color:darkblue;'></td></tr><tr><th align=left width=20%><font size=-1 color=black>16.09.2003<br>16:56:21</font></th><th align=left width=80%><font size=-1 color=black>Kategorie: Bieten<br>Fenster</font></th></tr><tr><td colspan=3><hr noshade style='height:1px; color:darkgray;'></td></tr><tr><td><font color=black>Oehmig, Uwe<br><font size=-1><a href='mailto:uwe.oehmig@stua-du.nrw.de?subject=Board: Fenster'>mail</a></font></a></font></td><td><font color=black>Zwei fenster a 60€</font></td><td><form name='loeschen' action='board_del.php' method='post' target='_blank'><input type=hidden name='loeschen' value=5><input type=image src='..\images\loeschen.jpg' height=30 width=75 name='del' alt='Eintrag löschen' onClick='loeschen.submit()'></form><form name='update' action='board_upd.php' method='post' target='_blank'><input type=hidden name='update' value=5><input type=image src='..\images\bearbeiten.jpg' heigth=26 width=75 name='upd' alt='Eintrag bearbeiten' onClick='update.submit()'></form></td></tr><tr><td colspan=3><hr noshade style='height:1px; color:darkgray;'></td></tr><tr></center></td></tr><tr><td colspan=3><hr noshade style='height:2px; color:darkblue;'></td></tr><tr><th align=left width=20%><font size=-1 color=black>16.09.2003<br>13:33:44</font></th><th align=left width=80%><font size=-1 color=black>Kategorie: Bieten<br>Hilfe in dienstlichen ADV-Fragen</font></th></tr><tr><td colspan=3><hr noshade style='height:1px; color:darkgray;'></td></tr><tr><td><font color=black>Wüstefeld, Ulf<br><font size=-1><a href='mailto:ulf.wuestefeld@stua-du.nrw.de?subject=Board: Hilfe in dienstlichen ADV-Fragen'>mail</a></font></a></font></td><td><font color=black>Hallo, wir sind das Dezernat 12 und wir bieten euch Hilfe in dienstlichen Fragen rund um die ADV im stUA Duisburg.</font></td><td><form name='loeschen' action='board_del.php' method='post' target='_blank'><input type=hidden name='loeschen' value=1><input type=image src='..\images\loeschen.jpg' height=30 width=75 name='del' alt='Eintrag löschen' onClick='loeschen.submit()'></form><form name='update' action='board_upd.php' method='post' target='_blank'><input type=hidden name='update' value=1><input type=image src='..\images\bearbeiten.jpg' heigth=26 width=75 name='upd' alt='Eintrag bearbeiten' onClick='update.submit()'></form></td></tr><tr><td colspan=3><hr noshade style='height:1px; color:darkgray;'></td></tr><tr></center></td></tr><tr><td colspan=3><hr noshade style='height:2px; color:darkblue;'></td></tr></table></center></body>
</html>

Vielen Dank für eure Mithilfe!

Ulf

  1. Hi,

    Ich habe in meinem Quelltext in Zeile 2 irgendeinen Fehler.
    Lt. IE6 auf NT4 SP6 unterstützt das Objekt diese Eigenschaft oder Methode nicht. Nehme ich die Angaben vor Submit 'raus wird das Fenster 2x geöffnet.
    <?
    include "../includes/service.inc.php";
    session_start();
    ?>

    Kommt bei Dir PHP-Code im Browser an? Dann stimmt etwas grundsätzlich mit der PHP-Installation nicht.

    Kommt KEIN PHP-Code an, dann ist der PHP-Code irrelevant, nur das, was beim Browser ankommt.

    cu,
    Andreas

    --
    Der Optimist: Das Glas  ist halbvoll.  - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
    http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/