I am trying to occupy an html div of a page with the results of a database query from another page via a php echo command. here is my sample code: This is the page i am performing the query
$content = '<h3>Member Login</h3>
<?php
    //Step 3: Perform a DB Query
    $member_info = mysql_query("SELECT * FROM members", $db_connect);
?>
<?php
    // Step 4: Use Returned Data
    while($row = mysql_fetch_array($member_info)){
        echo "First Name: ".$row[1];
        echo "Last  Name: ".$row[2]."<br>";
        echo "User  Name: ".$row[3]."<br>";
        echo "Password  : ".$row[4]."<br>";
        echo <hr>;
    }
?>
';
include 'foundation.php';
This is the page I am issuing the echo command(foundation.php):
<div id="content">
    <?php 
        echo $content;
    ?>
</div><!--end content div-->
The database connection is well established on another page so I know that is not the issue. I believe it is a problem with my syntax because it displays the following:
"; echo "User Name: ".$row[3]."
"; echo "Password : ".$row[4]."
"; echo ; } ?> 
 
     
     
    