I've not looked at your code extensively but if statements need a double equals sign to do comparisons.
i.e.
if (something == condition)
Assuming a table as such...
pedantic_table (table name)
+----+-------+------------+
| id | name | birthday |
+----+-------+------------+
| 1 | Dan | 1995-09-01 |
| 2 | Dani | 1982-11-11 |
| 3 | Sally | 1989-10-13 |
+----+-------+------------+
What I would do is pipe
all your data from your table into an array then compare each birthday date as you go along. If the birthday matches the curDate() show "it's your birthday" if not show "happy unbirthday"
Last edited by iamthwee; Jun 24th, 2007 at 7:40 am.
Reputation Points: 1536
Solved Threads: 431
Posting Expert
Offline 5,865 posts
since Aug 2005