
Originally Posted by
charlyne
who can help me
i download wizkids regpage
and i have problem its not running
i think i make it right
i make step by step
alltime
comes
"; die(); } else { $regdate = date("Y-m-d H:i:s"); $email = antisql($_POST['email']); $reg = "INSERT INTO Account (UserID, UGradeID, PGradeID, RegDate, Email, Age, Name) VALUES ('".antisql($_POST['username'])."', '1', '1', '$regdate', '$email', '".antisql($_POST['age'])."', '".antisql($_POST['name'])."')"; $query = odbc_exec($connect,$reg); $gebruiker1 = "SELECT AID FROM Account WHERE UserID='".antisql($_POST['username'])."'"; $gebruiker = odbc_exec($connect,$gebruiker1); $i=1; while (odbc_fetch_row($gebruiker, $i)){ $aid = odbc_result($gebruiker, 'AID'); $i++; } if (!$aid) { die ("Oeps, something's wrong with the database"); } $reg2 = "INSERT INTO Login (UserID, AID, Password) VALUES ('".antisql($_POST['username'])."', '$aid', '".antisql($_POST['password'])."')"; $query = odbc_exec($connect,$reg2); print ("
Your account is succesfully created!
"); } } ?>
You can register a Gunz account right here:
"; ?>
Username
Password
E-mail
Name
Age
pls help
mfg