$sql = "SELECT * FROM tabelle WHERE username='" . $eingabe . "'";
$abfrage = mysql_query($sql, $verbindung);
$anzahl = mysql_num_rows($abfrage);
if($anzahl>0) {
echo "user vorhanden";
}
else {
echo "ned vorhanden";
}
für eine solche anwendung ist es immer hilfreich, jeden eintrag mit einem index zu versehen, um ihn eindeutig identifizierbar zu machen.
____________________________________
"Life is like a box of rockets," said the Marine. "You never know what you´re gonna ret."
Then he pulled the trigger of his BFG9000.
|