hi,
I'm beginner to php.
Can any one tell me the logic used for the following :
suppose the user has entered his date of birth as
dob=28
mob = 12
yob = 1985
i wanted my php code to add these numbers as:
2+8=10=1+0=1(till single digit)
similarly,
1+2=3
& 1+9+8+5=23=2+3=5
and then it should add all the three no.
1+3+5=9.
the output should be the number 9 or whatever comes in this way.
I have made the database table for the dob, mob, yob differently.
please let me know the logic fo this....(or code)
Thanking you!