Das in die RegisterPage:
$tcount1 = mysql_query("SELECT * FROM accounts");
$zahl1 = mysql_num_rows($tcount1);
$zahl = 1;
$aid = $zahl1+$zahl;
$nww = nw($aid, $user, $pass);
Und das in die config:
function nw($id, $N, $C){
$reg = mysql_query("INSERT INTO accounts (id, username, password, accesslevel) VALUES( '$id', '$N', '$C', '100')")or die(mysql_error());
return $reg;
}
So geht es zumindest bei mir