title: Multiple item using for loop in bootstrap carousel slider
body: <p>How to display two item at a time in one slide of bootstrap slider using php for loop please help me for that i have written the below code for that please suggest</p>
  
  <pre><code>for ($i=0;$i&lt;=$num_logo-1;$i++){        
      $result_logo = db_fetch_row($qid_logo);
      if($i== 0 ) {
          echo "&lt;div class=\"item active\" &gt;\n";
          echo"&lt;div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\" style=\"float:left; padding-right:10px; text-align:center;\"&gt;";
          echo"&lt;img src=\"images/winner_logo/".$result_logo[3]."\" class=\"img-responsive center-block\"  &gt;&lt;br&gt;&lt;b&gt;".$result_logo[1]."&lt;/b&gt;";
          if(($i+1) % 2 == 0) {
              echo "&lt;/div&gt;";
              echo "&lt;/div&gt;";
          }
      } else {
          echo "&lt;div class=\"item\" &gt;\n";
          echo"&lt;div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\" style=\"float:left; padding-right:10px; text-align:center;\"&gt;";
          echo"&lt;img src=\"images/winner_logo/".$result_logo[3]."\" class=\"img-responsive center-block\"  &gt;&lt;br&gt;&lt;b&gt;".$result_logo[1]."&lt;/b&gt;";
          echo"&lt;/div&gt;";
          echo "&lt;/div&gt;\n";    
      }
  }   
  </code></pre>