<?php
include_once 'config.php';
$comanda = $_GET['comanda'];
					$sql1 = mysql_query("select * from detalle_comanda where comanda='$comanda' order by id_detalle_comanda desc") or die(mysql_error());
					$tr="<table class='table table-hover table-striped'><th>ITEM</th><th>CANTIDAD</th><th>IMPORTE</th>";
					while($r = mysql_fetch_array($sql1)){
						$codigo = $r["codigo"];
						$items++;
						$total+=$r["total_precio"];

						$tr.="<tr>";
							$id_detalle_comanda = $r["id_detalle_comanda"];
							$descripcion = $r["descripcion"];
							$tr.= "<td><a href='#' id='".$codigo."' onClick='get_detalle(this.id)'>".$r['descripcion']."</a></td>";
							$tr.= "<td>".$r['cantidad']."</td>";
							$tr.= "<td>".$r['total_precio']."</td>";
						$tr.="</tr>";
					}
					$tr.="</table>";
					$tr.="<br><input type='hidden' value='$total' id='txt-total'>";
					echo $tr;
				?>