douji5746 2019-06-17 09:42
浏览 67

检查数据库中数据的查看状态并停止链接的闪烁

I want to check the status of delivered data whether it is seen or not seen before clicking the view link if it is status is unseen the view link has to be blink otherwise stop blinking and I have tried the below code but it doesn't work by saying:

Notice: Undefined property: stdClass::$all in C:\xampp\htdocs\dataman\view_data.php on line 105 for each displayed view link.

<?php 
$dataID ='all';
foreach( $diReturn as $key => $diReturn): 
echo "<tr >";
$sql="SELECT * FROM report WHERE view='notseen'";
$query=mysql_query($sql);
if($query)  {       
echo "<td width='150'> <a href='disdata.php?id=". $diReturn->$dataID ."' 
class='blinking'><span> View </span> </a> </td> ";
}else{
echo "<td width='150'> <a href='disdata.php?id=". $disReturn->$dataID ."'> 
View </a> </td> ";
}
echo "</tr>";
endforeach;
?>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python变量和列表之间的相互影响
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)