Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/10/2006, 16:40
Section1
 
Fecha de Ingreso: diciembre-2003
Mensajes: 173
Antigüedad: 20 años, 4 meses
Puntos: 1
Te doy todo el codigo por si te sirve de mas ayuda

<?
//Conexion con la base
mysql_connect("localhost","xxxxx","xxxx");

//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"]."'");
echo '<tr><td><font size=1>'.$resulttres.'</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 '&nbsp;';
}
}
mysql_free_result($resultuno);
?>
</table>

Última edición por Section1; 18/10/2006 a las 19:41