0

Here is my code. Thankyou. It display like this Notice: Trying to get property of non-object.

 if($result->num_rows > 0){
            $eventListHTML = '<h2>Events on '.date("l, d M Y",strtotime($date)).'</h2>';
            $eventListHTML .= '<ul>';
            while($row = $result->fetch_assoc()){ 
                $eventListHTML .= '<li>'.$row['email'].'</li>';
            }
            $eventListHTML .= '</ul>';
        }
        echo $eventListHTML;
    }
annies
  • 1
  • 1

0 Answers0