How to fetch all datas and images from mysql table using PDO? : I'm trying to get a list of news from MySQL but I have some issues with PDO and I can not get. Actually I have titles, messages, photos and categories. Please see the code below and if you can help me. Images are in folder named 'userdatas'

    $sth = $conn->prepare("SELECT * FROM news");
    $sth->execute();
     while($row = $sth->fetch(PDO::FETCH_ASSOC)){
        echo $row['id'];
        echo $row['title'];
        echo $row['category'];
        echo $row['message'];
        echo '<img src="' . $row['photo'] . '" height="60" width="40"> ';
        echo "<br>";
                