Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/03/2006, 08:56
Avatar de floog
floog
 
Fecha de Ingreso: enero-2006
Mensajes: 191
Antigüedad: 18 años, 3 meses
Puntos: 2
el codigo es
Código PHP:
<?
include'db.php';  
$tabla="users";
$result mysql_query("SELECT ship_name, imo, loa, breadth, gross from $tabla where activate='1'"); 
echo 
" <link href=\"css/clients.css\" rel=\"stylesheet\" type=\"text/css\">;
        <table bordercolor=\"#000000\" align=center>"
;
for (
$i 0$i mysql_num_fields($result); $i++)
    { 
    print 
"<th bgcolor=\"#9EC068\">".mysql_field_name($result$i)."</th>\n"
    } 
while (
$registro mysql_fetch_row($result))
    {
    echo 
"<tr>";
    foreach(
$registro  as $clave)
        {
        echo 
"<td bordercolor=\"#000000\">",$clave,"</td>";
        }
    }
echo 
"</tr></table>";
mysql_close(); 
?>
gracias