title: How to print more than one query result rows in html table?
body: <p>I have this code:</p>
  
  <pre><code>static function mcontent($chkbox){
     $count = count($chkbox);
     foreach ($chkbox as $value){
         $count = count($value);
         for($i=0;$i&gt;$count;$i++) {
         $sql = "SELECT * FROM `radio_city` where chkid in (\"$value[$i]\")";
  
     } }
  return DB::select($sql);
  </code></pre>
  
  <p>I have checkboxes which are having dynamic ID's in index page on a table (in td),so when user clicks checkboxes then i am posting those values to next page and sending those values to mysql query as i have shown above(to select more than two rows those depends on user selection),So now i am sending those values to query to fetch the rows from database and need to print in html table.</p>
  
  <pre><code>array(8) { ["city"]=&gt; string(1) "8" ["duration"]=&gt; string(1) "0" ["frequency"]=&gt; string(1) "0" ["hours"]=&gt; string(1) "0" ["days"]=&gt; string(1) "0" ["checkbox"]=&gt; array(2) { [2]=&gt; string(5) "bang2" [3]=&gt; string(5) "bang3" } ["TotlCost"]=&gt; string(6) "Rs 0/-" ["email"]=&gt; string(25) "prasanna.mundas@gmail.com" } array(1) { [0]=&gt; object(stdClass)#552 (9) { ["state"]=&gt; string(9) "Karnataka" ["city"]=&gt; string(9) "Bangalore" ["station"]=&gt; string(15) "Radio Fever 104" ["language"]=&gt; string(5) "Hindi" ["reach"]=&gt; string(5) "7.90%" ["rate"]=&gt; string(3) "500" ["rank"]=&gt; string(3) "181" ["idnum"]=&gt; int(8) ["chkid"]=&gt; string(5) "bang3" } }
  </code></pre>
  
  <p>I am getting this array so how can i print this</p>