
<table class="table table-bordered table-hover">
          <thead>
            <tr  class="success">
      	<th></th>
			<th>Trans ID</th>
	    <th>Description</th>
	    <th>Ancillary</th>
	         <th>Price</th>
	        <th>Qty</th>
                      <th>Total Amount</th>
                   
                     <th>Created by</th>
                         <th>Transaction Type</th>
                             <th>Date Added</th>
            </tr>
          </thead>
          <tbody>
               
<?php
$joins = "
INNER JOIN tbl_transaction t ON tip.transaction_id = t.id

 LEFT JOIN tbl_items i ON tip.item_id = i.id

 LEFT JOIN tbl_users u ON tip.user_id = u.id

LEFT  JOIN tbl_t_type tt ON tip.t_type_id = tt.id

 JOIN tbl_items_category it ON i.item_category_no = it.category_no
";

             //tip.id,t.transaction_no,i.item_desc,it.category_desc,i.price,tip.qty,t.total_amount_items,u.full_name,tt.transaction_type,u.date        

$query_emergencies_list_load = mysql_query("SELECT tip.id, t.transaction_no, i.item_desc, it.category_desc, i.price, tip.qty, t.total_amount_items, u.full_name, tt.transaction_type, t.date FROM tbl_transaction_i_post tip $joins"); 
while($row= mysql_fetch_assoc($query_emergencies_list_load))
{
 $db_emergencies_list_load_id =$row['id'];
 $db_emergencies_list_load_transaction_no =$row['transaction_no'];
 $db_emergencies_list_load_item_desc =$row['item_desc'];
  $db_emergencies_list_load_category_desc =$row['category_desc'];
?>       
            <tr>
              <td><?php echo $db_modal_consultants_consultant_no; ?></td>
              <td><?php echo $db_emergencies_list_load_transaction_no; ?></td>
              <td><?php echo $db_emergencies_list_load_item_desc; ?></td>
              <td><?php echo $db_emergencies_list_load_category_desc; ?></td>
              <td><?php echo $dsadsads; ?></td>
                <td><?php echo $dsadsads; ?></td>
              <td><?php echo $dsadsads; ?></td>
              <td><?php echo $dsadsads; ?></td>
                         <td><?php echo $dsadsads; ?></td>
              <td> <a href="<?php echo $connect_url_data ?>/<?php echo $_SESSION['SessionUserLogFolder']; ?>/account/<?php echo $db_modal_patients_id; ?>/AddQty/'+ oObj.aData[0] +'">asdsa</a> </td>
    
             
            </tr>      
           <?php }  ?>
        </tbody>
    </table>