如何在表格中添加出价选项?

时间:2016-11-25 07:57:39

标签: php html-table

我是php的初学者... 如何从表中创建出价选项:

    <tr>
        <th>ID</th>
        <th>First Name</th>
        <th>Last Name</th>
        <th>Current Location</th>
        <th>Country</th>
        <th>State</th>
        <th>City</th>
        <th>Preferred Treatment Location</th>
        <th>Country</th>
        <th>State</th>
        <th>City</th>
        <th>Treatment & Surgery</th>
        <th>Enter date</th>
        <th>Medical Condition of Patient</th>
        <th>BIDS</th>
    </tr>
        <?php
            //Create Connection with MySQL Database
            $con = mysqli_connect('localhost','root','root123');

            //Select Database
            if(!mysqli_select_db($con,'medical'))
            {
                echo "Database Not Selected";
            }
            //Select Query
            $sql = "SELECT * FROM user_detail";

            //Execute the SQL query
            $records = mysqli_query($con,$sql);

            while($row = mysqli_fetch_array($records))
            {
                echo "<tr>";
                echo "<td>".$row['id']."</td>";
                echo "<td>".$row['fname']."</td>";
                echo "<td>".$row['lname']."</td>";
                echo "<td>".$row['clocation']."</td>";
                echo "<td>".$row['country']."</td>";
                echo "<td>".$row['state']."</td>";
                echo "<td>".$row['city']."</td>";
                echo "<td>".$row['treatment']."</td>";
                echo "<td>".$row['country1']."</td>";
                echo "<td>".$row['state1']."</td>";
                echo "<td>".$row['city1']."</td>";
                echo "<td>".$row['surgery']."</td>";
                echo "<td>".$row['date']."</td>";
                echo "<td>".$row['medicond']."</td>";
            }
        ?>
</table>

你能帮忙吗......

0 个答案:

没有答案