You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
ayudenme no encuentro como dibujar la tabla he intentado con table border=1 pero no sirve y he probado otras cosas y tampoco
Antes de preguntar dudas deberías de saber lo mínimo de html ya que la tabla se declara así: <table border="1">
Aquí está tu código...
<?php
include("db.php");
$result = mysql_query("SELECT * FROM servicio");
echo "<table border='1'>";
echo "<tr>";
echo "<th>ID</th>";
echo "<th>Vendedor</th>";
echo "<th>Semana</th>";
echo "<th>Quien pago</th>";
echo "<th>Proveedor</th>";
echo "<th>Fecha</th>";
echo "<th>Control</th>";
echo "<th>Adelanto</th>";
echo "<th>Cotizacion</th>";
echo "<th>Año</th>";
echo "<th>Tipo</th>";
echo "<th>Cliente</th>";
echo "<th>Descripcion</th>";
echo "<th>Factura</th>";
echo "<th>Monto total</th>";
echo "<th>Monto total 2</th>";
echo "<th>Factura 2</th>";
echo "<th colspan='2'>Acciones</th>";
echo "</tr>";
while ($test = mysql_fetch_array($result)) {
$id = $test['id'];
echo "<tr align='center'>";
echo"<td><font color='black'>" . $test['id'] . "</font></td>";
echo"<td><font color='black'>" . $test['Vendedor'] . "</font></td>";
echo"<td><font color='black'>" . $test['Semana'] . "</font></td>";
echo"<td><font color='black'>" . $test['QuienPago'] . "</font></td>";
echo"<td><font color='black'>" . $test['Proveedor'] . "</font></td>";
echo"<td><font color='black'>" . $test['Fecha'] . "</font></td>";
echo"<td><font color='black'>" . $test['Control'] . "</font></td>";
echo"<td><font color='black'>" . $test['Adelanto'] . "</font></td>";
echo"<td><font color='black'>" . $test['Cotizacion'] . "</font></td>";
echo"<td><font color='black'>" . $test['Año'] . "</font></td>";
echo"<td><font color='black'>" . $test['Tipo'] . "</font></td>";
echo"<td><font color='black'>" . $test['Cliente'] . "</font></td>";
echo"<td><font color='black'>" . $test['Descripcion'] . "</font></td>";
echo"<td><font color='black'>" . $test['Factura'] . "</font></td>";
echo"<td><font color='black'>" . $test['MontoTotal'] . "</font></td>";
echo"<td><font color='black'>" . $test['MontoTotal2'] . "</font></td>";
echo"<td><font color='black'>" . $test['Factura2'] . "</font></td>";
echo"<td> <a href ='view.php?id=$id'><strong>Editar</strong></a>";
echo"<td> <a href ='del.php?id=$id'><strong>Eliminar<strong></a>";
echo "</tr>";
}
echo "</table>";
mysql_close($conn);
?>Un saludo.



