Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67411

extra header at header row, HTML table

$
0
0

I explicitly inserted, inside a table row <tr> 4 columns, but I am seeing an extra that is messing up with my table design. added a image here , must say I am fetching data from a database, first time at this. this would be the php/html markup:

<form action="test.php" method="GET">
            <?php
                $query = "SELECT data0, data1, data2, data3 FROM table_name";
                $result = mysqli_query($conn, $query);

                echo "<table>";
                echo "<tr>
                        <th>Info-1</th>
                        <th>Info-2</th>
                        <th>Info-3<th>
                        <th>Info-4</th>
                      </tr>";
                while($row = mysqli_fetch_assoc($result)) {
                    echo "<tr>
                            <td>{$row['data0']}</td>
                            <td>{$row['data1']}</td>
                            <td>{$row['data2']}</td>
                            <td>{$row['data3']}</td>
                            </tr>";

                } ?>

Viewing all articles
Browse latest Browse all 67411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>