<?php 
  
  $hs=$xcon->getMyHexaNdealPost($ownID);
    
 if ($hs->rowCount()>0) {
  
   $hH=$hs->fetchAll();
 
?>
<b><small>MY DEALS POSTS</small></b> 
<form action="hexaNdeal.php" method="post">

		 <input class="hi" type="hidden" name="owniD"  value="<?php echo $ownID;?>">

         <small><i>(<input  class="posi" type="submit" value="Switch other's deal posts" name="post"  >)</i></small>
 </form>
<ul>
<?php
foreach ($hH as $key => $hD) {


$dealid=$hD['dealid'];  	
   ?>
  
 
		 <li id="dh"> 
		<b> <?php echo $hD['title'] ?> </b><br/>
          <img id="emg" src="<?php echo $hD['profileimage']?>">
	  
             
					 
                  <form action="myDealPostDetail.php" method="post">

                      <input class="hi" type="text" name="owniD"  value="<?php echo $ownID;?>">


                      <input class="hi" type="text" name="dealid"  value="<?php echo $hD['dealid'];?>">

 

                     <input  id="item" type="submit" value="(<?php echo $hD['currency'].":".$hD['cvalue'];?>) " name="post">

                   </form> 
                 <small>Posted:<?php echo $hD['posteddate'];?></small>
				 
		  
		 
  
		
		 </li>
		 
		  
<?php
 //}
}
?>
</ul>
<?php
}
else
{
	 
          require('getOtherDealsIn.php');
?> 
<?php
}  
?>