title: How to paste php variable in "span" tags?
body: <p>I have some problem with div content. I have created a website which books must be load from Mysql database to html div content. I have use <code>printf();</code> for load data to div content.  But i can't paste php variable between <code>&lt;span&gt;</code> tags.</p>
  
  <pre class="lang-html prettyprint-override"><code>    &lt;?php
  require 'scripts/connect.php';
  $sql_select = "SELECT * FROM users";
  $result = mysql_query($sql_select);
  $row = mysql_fetch_array($result);
  do
  {
      printf(
                      '&lt;ul&gt;
                      &lt;li&gt;
                          &lt;div class="product"&gt;
                              &lt;a href="#" class="info"&gt;
                                  &lt;span class="holder"&gt;
                                      &lt;img src="css/images/image01.jpg" alt="" /&gt;
                                      &lt;span class="book-name"&gt;$row['b_name'] &lt;/span&gt;     //ERROR IN HERE
                                      &lt;span class="author"&gt;$row['a_name']&lt;/span&gt;     //AND HERE
                                      &lt;span class="description"&gt;Maecenas vehicula ante eu enim pharetra&lt;br /&gt;scelerisque dignissim &lt;br /&gt;sollicitudin nisi&lt;/span&gt;
                                  &lt;/span&gt;
                              &lt;/a&gt;
                              &lt;a href="#" class="buy-btn"&gt;BUY NOW &lt;span class="price"&gt;&lt;span class="low"&gt;$&lt;/span&gt;22&lt;span class="high"&gt;00&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;
                          &lt;/div&gt;
                      &lt;/li&gt;
                      &lt;/ul&gt;'
                      );
  }
  while($row = mysql_fetch_array($result));
           ?&gt;
  </code></pre>
  
  
  
  <p>How i can do this ? Thanks</p>