$stmt = $db->prepare("SELECT id,name,type FROM tblCategory WHERE status=0 AND type='Gallery'");
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($id,$name,$type);
if($stmt->num_rows > 0){
while($stmt->fetch()){
echo '
'.$name.'
';
echo '
';
echo '
';
}
}
$stmt->close();
?>