Anonymous Anonymous - 1 month ago
2683 0

No description

PHP

php shiz

<?php
include("../dbConnect.php");
$query = "SELECT * from tblServices;";
$result = $conn->prepare($query);
$result->execute();
?>




            <table border="1px" align="center">
							<tr>
								<th colspan="2"><h3> Actions </h3></th>
								<th colspan="1"><button data-toggle="modal" data-target="#addServ"> Add </button></th>
								<th colspan="1"><button data-toggle="modal" data-target="#delServ"> Delete </button></th>
								<th colspan="1"><button data-toggle="modal" data-target="#editServ"> Edit </button></th>
							</tr>
							<tr>
                <th colspan="5"><h3> Services </h3></th>
              </tr>
              <t>
								<th><h3> Service Ref </h3></th>
                <th><h3> Service Name </h3></th>
                <th><h3> Service Length </h3></th>
                <th><h3> Service Price </h3></th>
                <th><h3> Service Image </h3></th>
              </t>
              <?php
              while ($rows = $result->fetch(PDO::FETCH_NUM)){
              ?>
              <tr>
								<td><?php echo $rows[0];?></td>
                <td><?php echo $rows[1]; ?></td>
                <td><?php echo $rows[2]; ?></td>
                <td><?php echo $rows[3]; ?></td>
                <td><?php echo $rows[4]; ?></td>
              </tr>
              <?php
              }
              ?>
            </table>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download