how to use colspan inside td element to display around 20 checkbox values fetched from database in php and html
<p>how to display 20 check box element fetched from database horizontally  inside a TD  using col span. Am  using php for fetching data from database. </p>

<pre><code>&lt;table&gt;
    &lt;tr&gt;
        &lt;td&gt;Act Name&lt;/td&gt;
        &lt;td colspan="5"&gt;&lt;input type='text'&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Industry Type&lt;/td&gt;
        &lt;td colspan="5"&gt;
            &lt;?php 
                $conn=get_dbconnect();
                $sql="SELECT id,name FROM industry"; //selection query
                $rs = mysqli_query($conn, $sql);//odbc_exec($conn,$sql);
                if (mysqli_num_rows($rs) &gt; 0) {
                    while($row = mysqli_fetch_assoc($rs)) {
                    echo "&lt;br&gt; &lt;input type='checkbox'  name='industrytype' value='".$row['name']."' onclick=checkAll(); /&gt; ".$row['name'];
                   }
                }
            ?&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>