Currently this code makes new members to my website membership expire in 30 days. Can anyone tell me how to change it to make the membership last indefinelty.
$MyExp = mktime(0,0,0,date(m) + 1, date(d), date(Y));
don't use $MyExp at all
This statement just created a date one month in the future. Check where it gets used in a SQL statement. That statement is the one that expires the member. Just not executing that SQL statement should do the trick.
do i delete the whole line of code? or just delete the $MyExp and leave the =mktime.....
thanks. i dont really know too much about coding. do you have any suggestion to how i can easily find that statement in the SQL?
😃 😃 😃 😃 😃 That was a good one 😃
Seriously... Look at the [man]mktime[/man] in php manual and set the expiration date in the line above for 25 years in advance (instead of one month, as it is now). This should be close enough.