I have no clue what you are trying to do, because it makes not sense. :-)
Here's what you are doing:
// Execute the query
$result = mysql_query($sql, $verbindung);
// While there are results, fetch the next result and put it in $data
while($data = mysql_fetch_array($result))
{
// Put the value of $oldpass in $data['Passwort']
// This means that you overwrite the query-results!!
$data[\"Passwort\"] = $oldpass;
}
// Close the database connection
mysql_close($verbindung);
// Print the value of $oldpass
echo $oldpass;
If you want to echo all the 'passwort' fields from your query, just do this:
result = mysql_query($sql, $verbindung);
while($data = mysql_fetch_array($result))
{
echo $data[\"Passwort\";
}
mysql_close($verbindung);