提醒功能如何创建? [英] reminder funtionality how to create?

查看:96
本文介绍了提醒功能如何创建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在页面上显示提醒通知,例如.如果管理员部门向某人发送了提醒,那么当该人登录到他的页面时,那时候他应该看到该提醒了……任何人都将如何提供帮助?

我已经创建了发送d提醒的简单页面,但是登录特定人员后如何获取提醒通知.

提醒功能性如何创建?

i want to show reminder notification on page.for eg. if admin dept sent reminder to perticular person then when that perticular person login into his page then that time he should see the reminder is there ...how it will be can anyone help?

i have created simple page which sends d reminder but how to get that reminder notification after login perticular person.

reminder funtionality how to create?

推荐答案

将提醒保存在DB中,如果登录成功,则登录,然后从数据库中获取提醒数据并显示.
Save the reminder in DB, and the login if login sucessfull, then get the reminder data from database and show.


您可以在用户表中添加2个额外的列,例如Reminder_Text,isDisplayed

当管理员为特定用户设置提醒时,请更新该用户的这两行,并默认将isDisplayed设置为false.

在每个用户登录名上,检查Reminder_Text值和isDisplayed值
如果isDisplayed为false,则显示警报消息,并将此字段设置为true.

或者您也可以为此提醒创建另一个表并在其中记录您的提醒!!

希望这会有所帮助.
You can add 2 extra column to your user table like Reminder_Text , isDisplayed

When an admin set the reminder for a particular user, update the user''s these 2 rows , and set isDisplayed to false by default.

On each user login check for Reminder_Text value and isDisplayed value
if isDisplayed is false show ur alert message , and make this field true.

or simply you can create another table for this reminder and log your reminders there !!

Hope this helps.


这篇关于提醒功能如何创建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆