<?php $sql = "SELECT * FROM services where service='Vehicle_Hiring' "; $result = $con->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { ?> <div class="col-lg-3" style="border: outset;"> <div class="header"> <?php echo '<img src="' . $row['image_path4']. '" width="100" height="100">'; ?> </div> <div class="body"> <h4><?php echo $row ['name']; ?></h4> class="fa fa-envelope-square"><?php echo $row ['email']; ?></br> class="fa fa-address-book"><?php echo $row ['address']; ?></br> <?php echo $row ['years']; ?></br> class="fa fa-info"><?php echo $row ['details']; ?> </div> <div style="background-color: #000000"> <font color="#FFFFFF"><?php echo $row ['district']; ?></font> <font color="#FFFFFF"><?php echo $row ['city']; ?></font> </div> </div> <?php } } else { echo "0 results"; } $con->close(); ?>
$con->close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)