rd4eva
Erfahrenes Mitglied
1. Wenn du den zweiten Parameter von mysql_query() weg lässt, wird standardmässig die letzte geöffnete Verbindung genommen.Warning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\login\bbb\login.php on line 13
2. Schreib mal folgendes :
PHP:
$connID = mysql_connect ("localhost", "slipknoter6", "") or die('Could not connect to mysql server.' . mysql_error());
Das ist quasi ein Folgefehler.Warning: mysql_num_rows() expects parameter 1 to be resource, null given in C:\xampp\htdocs\login\bbb\login.php on line 15
Zitat aus der Doku:Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\login\bbb\login.php:13) in C:\xampp\htdocs\login\bbb\login.php on line 30
Es darf also absolut garnix vor einem header() aufruf stehen.Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file.