 I have Two Tables
   I have Two Tables userwhich has field userName and another table page which has field pageUserName so im selecting this two tables form the database in while loop but i want to echo this two Names in same while loop one after another like we have in FB their are userName as Well as Page names in news feed how can i do this ????
    <?php  
    $sql=mysql_query("SELECT * FROM user LEFT JOIN page ON user.userID=page.userID") ;
    while($row=mysql_fetch_assoc());
    {
    //For First Loop It Should Be UserName
    echo $row['userName']; 
   //For 2nd Loop It Should Be pageUserName
    echo $row['pageUserName']; 
    } ?>
This is the code but the echo gets print together i want separate echo for userName and another for pageUserName one after another and not together
 
     
     
     
     
    