Código PHP:
<?
//Conexion con la base
mysql_connect("localhost","xxx","xxx") ;
//selección de la base de datos con la que vamos a trabajar
mysql_select_db("digiocio_com_1");
//Ejecutamos la sentencia SQL
$resultuno=mysql_query("select * from corporation_facturas where id='".$id."'");
?>
<center><h4>FACTURA DETALLADA</h4></center>
<table align="center">
<tr>
<?
include("login.php");
//Mostramos los registros
while ($row=mysql_fetch_array($resultuno))
{
if(!empty($row["productouno"]))
{
$resulttres = mysql_query("select descripcion from corporation_servicios where idd='".$row["productouno"]."'");
$descripcion = mysql_fetch_array( $resulttres );
echo '<tr><td><font size=1>'.$descripcion[0].'</font></td><td><font size=1>'.$row["ununo"].'</font></td><td><font size=1>'.$row["pvpuno"].'</font></td></tr>';
mysql_free_result($resulttres);
}
else
{
echo ' ';
}
}
mysql_free_result($resultuno);
?>
</table>