我有一个PHP中的消息传递系统,带有通知选项。并且消息状态默认为 status='0',这意味着消息未读。我想要的是,如果接收者单击发件人配置文件(在侧边栏的聊天区域中),消息状态必须更新为status='1',这意味着消息已被阅读。
<a href="inbox?msgid=<?php echo $id;?>" style="width:90%">
<div class="row con_cont_list">
<div class="col-3">
<img src="media/<?php echo $ProfileImg;?>" width="60px" height="60px" alt="">
</div>
<div class="col-9">
<p><?php echo $FullName;?>
<?php if($frnd_msgs_noti):?>
<span class="badge badge-danger" style="border-radius:50%;"><?php echo $frnd_msgs_noti;?></span>
<?php endif;?>
</p>
</div>
</div>
</a>
蝴蝶刀刀
慕森王