I am using a MySQL database to store image locations with the goal of posting the images to a page. I'm encountering a problem that I can't seem to figure out. If an image is stored in the database with spaces in the title, for instance "image two.jpg" it will not be displayed on the page. An image with the name "imagetwo.jpg" will be displayed. Here is my code:

```
     <?php
        require('db_connect.php');

        $query = ("SELECT * FROM photos");
        $result = mysql_query($query);
        $num = mysql_numrows($result);
        $i=0;
        while ($i<$num) {
            $name = mysql_result($result, $i, 'Name');
            $price = mysql_result($result, $i, 'Price');
            $price = '$'.$price;
            $description = mysql_result($result, $i, 'Description');
            $location = mysql_result($result, $i, 'Location');
            $id = mysql_result($result, $i, 'id');

            echo "<img src=" . $location . "><br>";
            echo $location;
            echo "<br>";
            echo $id;
            $i++;
        }

        ?>

```

The interesting thing is is that the 'location' is stored in my database and recognizes the spaces, and when I echo the $location variable it displays the proper image name. Why would these not be posted?

Thank you!