PDA

View Full Version : User Adding problem (code)


Isaiah33
10-17-2004, 06:26 PM
I have this code which people asking to join to the forum.
i made Accept\Reject but when i click on Accept i did


$joindate=time();
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,joinda te,salt) VALUES (NULL,'2','".$user."','".$pass."','".$email."',$joindate,'$salt')");
$userid=$DB_site->insert_id();
$DB_site->query("INSERT INTO userfield (userid) VALUES ($userid)");


and the user is added FINE, the problem is, he stays as a guest :(

Any helpers about this subject?