Eronisch
Web Developer
- Jan 1, 2011
- 234
- 25
Hi,
I want that users automatically get hc and a badge, but for some reason it doesn't work.
My sql should be right, the register page doesn't give me any errors.
Code:
I've added the code under the line:
That should be the right place, does someon know why it doesn't work?
I want that users automatically get hc and a badge, but for some reason it doesn't work.
My sql should be right, the register page doesn't give me any errors.
Code:
PHP:
// Gives a user 12 months of hc
$db->query("INSERT INTO ".PREFIX."users_club(userid,months_expired,months_left,date_monthstarted) VALUES ('".$row[0]."','0','12','".time()."')");
// Give that bitch a shiny badge, bitches loves shiny badges
$db->query("INSERT INTO ".PREFIX."users_badges(userid,badgeid,iscurrent,slotid,badge) VALUES ('".$row[0]."','HC2','1','1','NULL')");
I've added the code under the line:
PHP:
$db->query("INSERT INTO ".PREFIX."transactions (userid,time,amount,descr) VALUES ('".$row[0]."','".time()."','".$scredits."','Welcome to " . $sitename . "!')");