Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/07/2009, 14:01
dubiweb
 
Fecha de Ingreso: octubre-2008
Mensajes: 122
Antigüedad: 16 años, 4 meses
Puntos: 7
Respuesta: problema con codigo eliminar

este el codigo que tengo de vista de datos

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="REFRESH" content="60">
<title>Vista de Productos</title>
<style type="text/css">
<!--
.TituloPrincipal {
font-weight: bold;
font-size: 16px;
font-family: Tahoma;
color: #FFF;
text-align: center;
}
.centrarObjetos {
text-align: center;
font-family: Tahoma;
}
.datosSolicitado {
font-weight: bold;
font-family: Tahoma;
font-size: 12px;
}
.Negrita2 {font-weight: bold;
font-family: Tahoma;
font-size: 12px;
}
.DatosSoliIngreCentrados {
font-weight: bold;
font-size: 14px;
text-align: center;
}
.blancosolicitado {
color: #FFF;
}
.blancosolicitado {
font-weight: bold;
}
.blancosolicitado td {
font-family: Tahoma;
}
.blancosolicitado td {
text-align: center;
}
.blancosolicitado td {
font-size: 12px;
}
-->
</style>
</head>

<body>
<table width="800" border="0" align="center">
<tr>
<td width="63"><img src="img/zoom_out.gif" width="48" height="48" alt="Vista de Productos en Existencias" /></td>
<td width="301" class="DatosSoliIngreCentrados">Vista de Productos en Existencia.</td>
<td width="56"><img src="img/shopping_cart_accept.png" width="48" height="48" alt="Vista de Productos en Existencia" /></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="3"><?php


$conn = mysql_connect("localhost","dubiweb", "asd25879");

if($conn){
//echo ("Conección a Servidor Exitosa...."."<br />");
}
else{
//echo ("Conección a Servidor Fallida...."."<br />");
}

$selecciona_tabla=mysql_select_db("facturacion", $conn);

if($selecciona_tabla){
//echo ("Conección a Base Conectada...."."<br />");
}
else{
//echo ("Conección a Base Fallida...."."<br />");
}

$consulta = mysql_query("Select * from inventproductos", $conn);

while($LeerColumnas=mysql_fetch_array($consulta)){

echo ($LeerColumnas["codigoproducto"].", ".$LeerColumnas["detalleprod"].", ".$LeerColumnas["cantidadprod"].", ".$LeerColumnas["preciocompraprod"].", ".$LeerColumnas["precioventaprod"].", ".$LeerColumnas["comentario"].", ".$LeerColumnas["fechaingreso"]." , ".$LeerColumnas["horaingreso"]."<br />");



}

mysql_close($conn);

header("Refresh: 1000; ");


?> &nbsp;</td>
</tr>
<tr>
<td colspan="3"><table width="800" border="0">
<tr class="blancosolicitado">
<td bgcolor="#FF9900">Codigo Producto</td>
<td bgcolor="#FF9900">Detalle Producto</td>
<td bgcolor="#FF9900">Cantidad de Producto</td>
<td bgcolor="#FF9900">Precio de Compra</td>
<td bgcolor="#FF9900">Precio de Venta</td>
<td bgcolor="#FF9900">Comentarios</td>
<td bgcolor="#FF9900">Fecha Ingreso</td>
<td bgcolor="#FF9900">Hora Ingreso</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"><? header('Refresh: 60'); ?> &nbsp;</td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="3"><table width="246" border="0" align="center">
<tr>
<td width="75"><a href="PanelDeMantenimiento.html"><img src="img/app_largeicons.gif" alt="Panel de Control" width="48" height="48" border="0" /></a></td>
<td width="216" class="neggri"><span class="Negrita2">Ir al Panel de Control</span></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>