fks: Radio button Werte in php interpretieren (für mysql)

Beitrag lesen

if ($wert == name){
$ausgabe=MYSQL_QUERY( "SELECT PLZ FROM $tabelle order by Name");
}
elseif ($wert == plz) {
$ausgabe=MYSQL_QUERY( "SELECT PLZ FROM $tabelle");
}
elseif ($wert == bundesland) {
$ausgabe=MYSQL_QUERY( "SELECT Bundesland FROM $tabelle order by PLZ");
}
else {
$ausgabe=MYSQL_QUERY( "SELECT Datum FROM $tabelle order by Datum");
}

Probier mal das...
if ($wert == "name")
{
$ausgabe=MYSQL_QUERY( "SELECT PLZ FROM $tabelle order by Name");
}

wenn das nicht funzt...
if ($POST["wert"] == "name")
{
$ausgabe=MYSQL_QUERY( "SELECT PLZ FROM $tabelle order by Name");
}

mfg
fks