asp代码问题!!!!!急急急,在线等

2025-05-17 11:56:25
推荐回答(2个)
回答1:

sql="select truename,headpic,birthday from [txluser] where month(birthday)=month(Now())"

改为
sql="select truename,headpic,birthday from [txluser] where day(birthday)=day(Now())"

-------------------
response.write"本月没有人过生日"
改为
response.write"今天没有人过生日"

回答2:

sql="select truename,headpic,birthday from [txluser] where month(birthday)=month(Now())"

改为

sql="select truename,headpic,birthday from [txluser] where month(birthday)=month(Now()) and day(birthday)=day(Now())"

'-------------------
response.write"本月没有人过生日"
改为
response.write"今天没有人过生日"