ich hab da ein Problem mit meinem Skript, weiss aber nicht wie ich das richtig stellen muss! Könnt ihr euch das bitte mal angucken?
Code:
$sql = "SELECT
Name,
ID,
Passwort
FROM
Benutzer
WHERE
ID = '$ID'
";
$result = mysql_query($sql) OR die(mysql_error());
echo "";
while($row = mysql_fetch_assoc($result)) {
if ($passwort1 != $row['Passwort'])
echo "Das Passwort ist falsch, gib es bitte noch einmal ein!";
else {
$sql1="
INSERT INTO
Tipps(User,SpieltagU,Spiel1U,Spiel2U,Spiel3U,Spiel4U,Spiel5U,Spiel6U,Spiel7U,Spiel8U,Spiel9U) VALUES('$ID','$nummer','$spiel1','$spiel2','$spiel3','$spiel4','$spiel5','$spiel6','$spiel7','$spiel8','$spiel9');";
$result = mysql_query($sql1) OR die(mysql_error());
}
}
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /www/htdocs/v082488/BL/tippabgabe.php on line 37
Max Dhom

Kommentar