Blasteh
big tits
I'm adding some PHP onto my property management company's website but I cannot get the values to display from the database.
I added the PHP function below and only added the beds value from the database for this example. It comes back as nothing. For some reason, I cannot get any values from the database. I'm pretty stuck on why I can't get values. Any help is appreciated.
Database Connection:
PHP:
I added the PHP function below and only added the beds value from the database for this example. It comes back as nothing. For some reason, I cannot get any values from the database. I'm pretty stuck on why I can't get values. Any help is appreciated.
You must be registered for see images attach
Database Connection:
Code:
<?php
$mysqli = mysqli_connect("localhost","USER","PW","DB");
// Check connection
if ($mysqli -> connect_errno) {
echo "Failed to connect: " . $mysqli -> connect_error;
exit();
}
?>
PHP:
PHP:
<?php
$GetProperty = mysqli_query("SELECT id,img,beds FROM properties WHERE id > 0 ORDER by id");
echo'
<div class="listing-item">
<a href="demo-real-estate-properties-detail.html" class="text-decoration-none">
<div class="thumb-info thumb-info-lighten border">
<div class="thumb-info-wrapper m-0">
<img src="img/demos/real-estate/listings/listing-1.jpg" class="img-fluid" alt="">
<div class="thumb-info-listing-type bg-color-secondary text-uppercase text-color-light font-weight-semibold p-1 pl-3 pr-3">
for sale
</div>
</div>
<div class="thumb-info-price bg-color-primary text-color-light text-4 p-2 pl-4 pr-4">
$ 530,000
<i class="fas fa-caret-right text-color-secondary float-right"></i>
</div>
<div class="custom-thumb-info-title b-normal p-4">
<div class="thumb-info-inner text-3">South Miami</div>
<ul class="accommodations text-uppercase font-weight-bold p-0 mb-0 text-2">
<li>
<span class="accomodation-title">
Beds:
<span class="accomodation-value custom-color-1">
</span>
'.$GetProperty['beds'].'
</span>
</li>
<li>
<span class="accomodation-title">
Baths:
</span>
<span class="accomodation-value custom-color-1">
2
</span>
</li>
<li>
<span class="accomodation-title">
Sq Ft:
</span>
<span class="accomodation-value custom-color-1">
500
</span>
</li>
</ul>
</div>
</div>
</a>
</div>';
?>