title: display image from a PHP for loop
body: <p>So I have an array that contains information about items..I have also an image folder with the name of the files coinciding with one of the array values specifically $arr[$key]['isbn'];</p>
  
  <p>I have made a for loop to go through the array and display the images along with some information like item price.The problem is that in the image tag I am trying to include&lt; img src="$arr[$key]['isbn'].jpg and it's not working
  here is my code</p>
  
  <pre><code>for($row = 0; $row &lt; 6;$row++){
   echo '&lt;img src="$arr[$row]['isbn'].jpg" alt="Mountain View" style="width:304px;height:228px;"&gt;'.$arr[$row]['title'].'&lt;br /&gt;'.'by '.$arr[$row]['author']. '&lt;br /&gt; '.'&lt;input type="radio" name="booktype" value="hardcover" &gt;Hardcover: '.'$'.$arr[$row]['hardcover']. "&lt;br /&gt; ".'&lt;input type="radio" name="booktype" value="softcover" &gt;Softcover: '. "$".$arr[$row]['softcover']. "&lt;br /&gt; ".'&lt;input type="radio" name="booktype" value="e-book" &gt;E-Book:  '."$".$arr[$row]['e-book']. " ".'&lt;br /&gt;';
  }
  </code></pre>
  
  <p>when I print it out this is what I get
  <a href="https://i.stack.imgur.com/flsmO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/flsmO.png" alt="enter image description here"></a></p>
  
  <p>Here is my question first how do I refer to the isbn value and append .jpg to get image.
  2. Notice how the image is displaying and then other images are below it..I would like it to be inline; line have an image, then below it the prices and then besides it the next image...
  thank you please help</p>