 
<center>

<table border="1" style="border-color:white" id="output">
    
    <tr><td id="td_height" ><label id="inner_top">NAME</label></td> <td><label id="inner_top"> WEIGHT / VOLUME </label></td>
              <td><label id="inner_top">CATEGORY</label></td>

               <!-- <td id="td_height" ><label id="inner_top">MANUFACTURE/VENDOR</label></td>


                <td id="td_height" ><label id="inner_top">DESCRIPTION</label></td>-->

                <td><label id="inner_top">SELLER/SHOP</label></td>

                <td><label id="inner_top">SHOP CATEGORY</label></td>
 
                <td id="td_height" ><label id="inner_top">PRICE</label></td><td  ><label id="inner_top">SELLER CONTACT</label></td> 
                <td  ><label id="inner_top">PLACE ORDER</label></td> 
  
 
                </tr>    
      

 <?php
   
    $searchValue=$_POST['searchValue'];
    require("buda_myStock_class.php");
    $mcon = new  buda_myStock_class();
 
 	$dD=$mcon->getItemBySearch($searchValue);
	
        if($dD->rowCount()>0){
           $roN=$dD->fetchAll();
          // print_r($roN=$dD->fetchAll());
 
   foreach ($roN as $key => $rowN){ 
      $itemid=$rowN['itemid'];
      $pD=$mcon->getItemPrice($itemid);
      if($pD->rowCount()>0){
        //echo $pD->rowCount(). " results found!..";
      $proN=$pD->fetchAll();
      foreach ($proN as $key => $prowN){ 
      $shopid=$prowN['shopid'];
      $nsD=$mcon->getShopName($shopid);

      $nsroN=$nsD->fetch();
          
  
        ?>

         		
     
 <tr><td id="td_height">

<!--<form action="itemMoreDetailOtherInout.php" method="post">
<input class="hi" type="hidden" name="shopid"  value="<?php// echo $prowN["shopid"];?>">

<input class="hi" type="hidden" name="itemid"  value="<?php// echo $prowN["itemID"];?>">

<input class="hi" type="hidden" name="owniD"  value="<?php //echo $prowN["ownerid"];?>">

<input class="hdf" type="submit" value="<?php //echo $rowN["itemname"];?>" name="post"  >

 </form>--><label id="inner_lab"><?php echo $rowN["itemname"];?> </label></td>

     <td><label id="inner_lab"><?php echo $rowN["itemtype"];?> </label></td>

     <td id="td_height" ><label id="inner_lab"><?php echo $rowN["itemcategory"];?> </label></td>

   <!--  <td><label id="inner_lab"><?php //echo $rowN["vendor"];?> </label></td>

     <td><label id="inner_lab"><?php //echo $rowN["description"];?> </label></td>
-->
     <td ><label id="inner_lab"><?php echo $nsroN["shopname"];?> </label></td>

     <td><label id="inner_lab"><?php echo $nsroN["category"];?> </label></td>


     <td ><label id="inner_lab"><?php echo $prowN["price"];?> </label></td>

  
     <td id="td_height" ><label id="inner_lab"><?php echo $nsroN["phoneno"];?> </label>
     </td>
     <td>
      <form id="order" action="../home.php" method="post">
 
            <input  id="item" type="submit" value="Order Now" name="post">  
      </form>
     </td>
     
   </tr> 
         		
       
 
   
<?php
  
}
}
 
}
}
?>

 
 </table>

   </center>
          