Ich hab da mal ein problem und komme nicht weiter. Hier mal mein Script
PHP:
<?
include('connect.php');
mysql_connect($host, $user, $pw);
mysql_select_db($database);
if($gezeigt=="ja")
{
$sql=" UPDATE mitglieder SET per_nummer='$per_nummer', per_name='$per_name', per_bewilligung='$per_bewilligung', per_erw='$per_erw', per_kinder='$per_kinder', per_gesamt='$per_gesamt', per_wohnort='$per_wohnort', WHERE per_id=$welcher";
$erg=mysql_query($sql);
$erg=mysql_query($sql);
while(list ($per_id, $per_nummer, $per_name, $per_bewilligung, $per_erw, $per_kinder, $per_gesamt, $per_wohnort) = mysql_fetch_row($erg))
{
<form action='aendern.php?welcher=$welcher' method='post' name='formi'>
<input type='hidden' name='gezeigt' value='ja'></input>
<table border='0' cellpadding='5' cellspacing='0' bgcolor='#E0E0E0'>
<tr><td align='right'>Nummer:</td>
<td><input name='per_nummer' value='$per_nummer' type='text' size='30' maxlength='40'></td></tr>
<tr><td align='right'>Name:</td>
<td><input name='per_name' value='$per_name' type='text' size='30' maxlength='40'></td></tr>
<tr><td align='right'>Bewilligung:</td><td><input name='per_bewilligung'value='$per_bewilligung' type='text' size='30' maxlength='40'></td></tr>
<tr><td align='right'>Erw:</td><td><input name='per_erw' value='$per_erw' type='text' size='30' maxlength='40'></td></tr>
<tr><td align='right'>Kinder:</td><td><input name='per_kinder' value='$per_kinder' type='text' size='30' maxlength='40'></td></tr><tr>
<td align='right'>Gesamt:</td><td><input name='per_gesamt' value='$per_gesamt' type='text' size='30' maxlength='40'></td></tr>
<tr><td align='right'>Wohnort:</td><td><input name='per_wohnort' value='$per_wohnort' type='text' size='30' maxlength='40'></td></tr>
<tr><td align='right'>Formular:</td><td>
<input type='submit' value='Absenden'><input type='reset' value='Abbrechen'></td></tr></table><br><br>
<a href='index.php'>Zurück zur Startseite</a><br><br>
</form>
}
}
mysql_close();
?>