hallo
jetzt hab ich mal eine weitere frage zu der auswahlliste.
also die liste wird ja jetzt richtig angezeigt, wie ich es wollte.
PHP-Code:
auswahlsuche.php
echo"<FORM ACTION=\"suchausgabe.php\" METHOD=POST>";//Formularziel
$tabellenname="applikation";
echo"</P><P><b>Applikation:<b> <select NAME=\"applikation\">";
$abfrage = "SELECT applikation , applikation_id FROM applikation ORDER BY applikation";
$ergebnis = mysql_query($abfrage);
while ($m_fetch = mysql_fetch_object($ergebnis)) {
echo "<option value='{$m_fetch->applikation_id}'>{$m_fetch->applikation}</option></P><br>";
}
echo"</select></CENTER></P>";
echo"</P><P><INPUT TYPE=submit NAME=Absenden VALUE=\"Suchen\"></CENTER>";
echo"</FORM> </FONT></P></BLOCKQUOTE>";
und ich will ja dass wenn man da eine applikation auswählt, alle datensätze angezeigt werden, die zu dieser applikation passen.
leider klappt es irgendwie mit der parameterüberhabe oder so nicht.
hier ist noch der code dazu:
PHP-Code:
suchausgabe.php
<html><head>
<title>Suchergebnis</title>
</head>
<body>
<h1>Suchergebnisse</h1>
<?php
$link = mysql_connect("...", "...", "...");
mysql_select_db("...", $link);
$tabellenname=" einflussdetail";
$sql="select applikation.applikation, applikation.applikation_id
from applikation inner join einflussdetail
on applikation.applikation_id = einflussdetail.applikation_id
where (applikation = '".$result."') ";
$result = mysql_query($sql);
print "<table border=\"1\" cellspacing=\"2\" ".
"cellpadding=\"2\">\n";
print "<tr><th>id</th><th>applikation</th></tr>\n";
while ($dataset = mysql_fetch_array($result)){
print "<tr>";
print "<td>".$dataset['applikation_id']."</td>";
print "<td>".$dataset['applikation']."</td>";
print "</tr>\n";
}
print "</table>\n";
?>
</body></html>
habt ihr vielleicht eine idee, wieso es nicht funktioniert.
wie gesagt es können da viele fehler sein, da ich mich da noch nicht gut auskenne.
Grüße Tatjana