YOUAREtehSCENE Posted December 27, 2009 Share Posted December 27, 2009 I`m trying to code an invite system based. Would like to have it so that it's all in php of course So where it would be like this http://i33.tinypic.com/t5g3ty.jpg But, I would like it so that the person who gets the invite opens up there email and there would be a link to there invite to be activated and it would have like a long random confirmation code I was planning on using this http://www.phpeasystep.com/phptu/24.html please check this out. wondering if this would be easier, or useful But, I want to have control in the database tables, to add more invites for people On one of the DB tables, I'd like to have the person who invited, the invited Then maybe on the same table, or second I'd like to have a box where I can add invites invite.php invite/ So people can have on there sidebar Invite History Pending Invites Invite A Friend and all of those will be drop down menus here's the random key code <? function createRandomCode($num){ //create an array of characters $rand_array = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",1,2,3,4,5,6,7,8,9); //initialize the string $random_code = ''; //loop through the number that you wanted for($i=0;$i<$num;$i++){ $rand_num = rand(0,sizeof($rand_array)); $random_code .= $rand_array[$rand_num]; } return $random_code; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/186442-invite-system-php-msql/ Share on other sites More sharing options...
trq Posted December 28, 2009 Share Posted December 28, 2009 Do you have a question that actually relates to the topic of this board? Quote Link to comment https://forums.phpfreaks.com/topic/186442-invite-system-php-msql/#findComment-984751 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.