-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-prop-details.php
62 lines (54 loc) · 1.98 KB
/
get-prop-details.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
include 'main.php';
$sql="SELECT PropertyID,UserID, Iam,Name,Mobile,Email,PropertyFor,PropertyType,City,Locality,Images,RSK_exclusivity,UploadTime FROM listproperty LIMIT $limit_view";
$stmt=$conn->prepare($sql);
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($propertyID,$userID,$upl_type,$name,$mobile,$email,$for,$type,$city,$locality,$images,$rsk_excl,$updatedAt);
while($stmt->fetch()){
//echo $propertyID.$images.$city."<br>";
$get_details="SELECT `PropTitle`, `PropPrice`, `BuildupArea`, `Configuration`, `PosessionStatus`, `Facing`, `CarpetArea`, `Bathrooms`, `Balcony`, `Bedrooms`, `Parking`, `About`, `UpdatedTime`
FROM property_details WHERE PropertyID='$propertyID'";
$prop_details=$conn->prepare($get_details);
//$prop_details->bind_param("s",$p_propID);
// $p_propID=$propID;
$prop_details->execute();
$prop_details->store_result();
$prop_details->bind_result($title,$price,$build_area,$config,$posession,$facing,$carpet_area,$bathrooms,$balcony,$bedrooms,$parking,$about,$lastupdated);
$prop_details->fetch();
if(empty($title)){
$title="NA";
}
if(empty($price)){
$price="NA";
}
if(empty($build_area)){
$build_area="NA";
}
if(empty($config)){
$config="NA";
}
if(empty($posession)){
$posession="NA";
}
if(empty($facing)){
$facing="NA";
}
if(empty($carpet_area)){
$carpet_area="NA";
}
if(empty($bathrooms)){
$bathrooms="NA";
}
if(empty($bedrooms)){
$bedrooms="NA";
}if(empty($parking)){
$parking="NA";
}if(empty($balcony)){
$balcony="NA";
}
include 'property-card-small.php';
$prop_details->close();
}
$stmt->close();
?>