Iank1968 Posted February 17, 2009 Share Posted February 17, 2009 I made a login program that allows players to get a specific log in every 3 hours, but it when a player goes on an adventure it calculates the login every single time. Can someone help me with this code please. function NewRegularInterval ($user) { //print "congrats 3 hour interval"; ?> <fb success message="Thanks for playing, you have been given EO$ 25 for logging in." /> <? global $users_table; Query ("UPDATE $users_table SET regular_intervals = regular_intervals + 1, last_logon_credit = NOW() WHERE uid=$user"); return GetRegularIntervals ($user); } function NewBonusInterval ($user, $num) { //print "congrats 3 hour interval"; ?> the log in is supose to be calculated every 3 hours not every adventure lol Thanks in advance for your help Link to comment https://forums.phpfreaks.com/topic/145637-having-issues-with-a-login-program-i-made/ Share on other sites More sharing options...
Brian W Posted February 17, 2009 Share Posted February 17, 2009 if you use the code tags you will likely get more help [ code ]Like this but without the spaces in the tags[ /code ] would be Like this but without the spaces in the tags Link to comment https://forums.phpfreaks.com/topic/145637-having-issues-with-a-login-program-i-made/#findComment-764647 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.