I am facing one issue. I am setting boolean true/false
value but when I am echo that value its showing me 1/blank
using PHP. I am explaining my code below.
$qry="SELECT c.member_id,c.rest_name,c.quadrant,c.proviance,c.postal,c.address,c.country,c.city,c.person,c.mobile,c.url,c.share_url,c.premium,c.image,c.multiple_image,c.business_phone_no,c.latitude,c.longitude,q.quadrant AS quadrant_name,ct.city_name FROM db_restaurant_basic AS c LEFT JOIN db_quadrant AS q ON c.quadrant=q.quad_id LEFT JOIN db_city AS ct ON c.city=ct.city_id WHERE c.member_id='".$member_id."' and c.status=1 ORDER BY rand()";
$fetchqry=mysqli_query($connect,$qry);
if(mysqli_num_rows($fetchqry) > 0){
while($row1=mysqli_fetch_array($fetchqry)){
if($row1['multiple_image']==''){
$available_image=false;
}else{
$available_image=true;
}
}
}
echo $available_image.'<br>';
Here that echo output is given me 1/blank value
. Here I need to get the true/false
as output.