Ver Mensaje Individual
  #7 (permalink)  
Antiguo 17/10/2006, 19:26
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
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 
'&nbsp;';
}
}
mysql_free_result($resultuno);
?>
</table>

Última edición por GatorV; 18/10/2006 a las 21:50