title: How to get PDO to select from more than one table
body: <p><strong>Here is my code:</strong></p>
  
  <pre><code>$sql= ("SELECT R.cr_id,R.time,R.reply,U.user_id,U.user_name FROM tb_user U, conversation_reply R WHERE R.user_id_fk=U.user_id and R.c_id_fk='$c_id' ORDER BY R.cr_id ASC LIMIT 20");
  $stmt = $conn-&gt;prepare($sql);
  $stmt-&gt;execute();
  $row=$stmt-&gt;fetchAll();
  
  
  foreach ($row as $laww) {
  
  echo $laww['$user_name'].":". $laww['reply']. "&lt;br&gt;";
  }
  
  }////END 
  </code></pre>
  
  <p>I get only the result from $laww['reply'] but not $laww['$user_name']
  Can anyone helpe me ?</p>