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;
?>