Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 检查消息是否已读和未读_Php_Mysql_Joomla - Fatal编程技术网

Php 检查消息是否已读和未读

Php 检查消息是否已读和未读,php,mysql,joomla,Php,Mysql,Joomla,我希望根据id进行更新。在前端级别,此id未获得..如何将此id传递给conroller..如果我阅读收件箱邮件,我也希望更改收件箱字体样式。阅读邮件收件箱: 1. Add new field in inbox message table named `is_read` type `int`. 2. And write a select query to select is_read and check whether it is 0 or 1. 3. If 'is_rea

我希望根据id进行更新。在前端级别,此id未获得..如何将此id传递给conroller..如果我阅读收件箱邮件,我也希望更改收件箱字体样式。

阅读邮件收件箱:

   1. Add new field in inbox message table named `is_read` type `int`.

   2. And write a select query to select is_read and check whether it is 0 or 1.

   3. If 'is_read' = 0 write a CSS style and if 'is_read' = 1 write a different CSS style for the font.

   4. And you can fix your self 0 as unread and 1 as read.

   5. Then write a update query for 'is_read' as 1 , When selecting the inbox message.

什么是rcp_id_?专栏?