 
 <b><small>OTHER'S NEEDS POST</small></b>
<?php
  
  $hs=$xcon->getOtherNeedPost($ownID);
    
 if ($hs->rowCount()>0) {
  
   $hH=$hs->fetchAll();
 

foreach ($hH as $key => $hD) {
  
$needid=$hD['needid'];
$posterid=$hD['adverstiserid'];

   ?>
  
 <section style="padding-left:10%;">
 <b> <?php echo $hD['title'] ?> </b><br>
 <small>(Post by:<i><?php echo $hD['cperson']."(".$hD['cphone'].")";?></i></small>
 <small>Posted:<i><?php echo $hD['posteddate']."(status:".$hD['status'].")";?></i></small>
 <small>Category:<i><?php echo $hD['category'];?></i></small>)<br/>
 <b> Description </b><br/>
   <?php echo $hD['description'] ?><br>     
  <small>Location:<i><?php echo $hD['region'].",".$hD['district'].",".$hD['street']."(Deadline:".$hD['deadline'].")";?></i></small>

  <form action="dealOfferingPostForm.php" method="post">
     <input class="hi" type="hidden" name="owniD"  value="<?php echo $ownID;?>">
     <input class="hi" type="hidden" name="posterid"  value="<?php echo $posterid;?>">
     <input class="hi" type="hidden" name="needid"  value="<?php echo $needid;?>">
     <input class="posi" type="submit" value="Offer your best " name="post"> 
   </form>
 </section><p/> 
 		  
<?php
 
}
  
}
else
{
	?>  
		<p/><small>No need's post!.. </small><p/>  
			
	 
	<?php

?> 
<?php
}  
?>