Jump to content
MakeWebGames

Recommended Posts

Posted

ive added this to my register page to add a mail to new users but it doesnt update my mainmenu to say the user has a mail

 

$db->query("INSERT INTO mail VALUES('', 0, 0, $i, unix_timestamp(),'[b]Welcome.[/b]','Welcome To [b]{$set['game_name']}[/b], Blah

[b]<u>The basic Gist of the game:[/b]</u>
blah.')");

 

does anybody know why or how to fix it?

Posted

Re: problem with my register.php i need help

lol. There is no mail function to send mail, thats why i have build my own instead of keep writing the query all the time i just do

mail_user($_POST['ID'], $_POST['subject'], $_POST['message']);

Posted

Re: problem with my register.php i need help

 

ive added this to my register page to add a mail to new users but it doesnt update my mainmenu to say the user has a mail

 

$db->query("INSERT INTO mail VALUES('', 0, 0, $i, unix_timestamp(),'[b]Welcome.[/b]','Welcome To [b]{$set['game_name']}[/b], Blah

[b]<u>The basic Gist of the game:[/b]</u>
blah.')");

 

does anybody know why or how to fix it?

You will also need to update users and set their new_mail = new_mail + 1 where userid = $newuser

Posted

Re: problem with my register.php i need help

 

You will also need to update users and set their new_mail = new_mail + 1 where userid = $newuser

I dont even use that i think its point less same for the events one, i've just deleted them from the users table and other stuff from there.

I just select query on mail for user on mailbox/events

Posted

Re: problem with my register.php i need help

Yeah i do that on my second game. But op said theirs isnt updating so im assuming it has the original setup like i do on envy.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...