Tema: Warning¡¡
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/03/2006, 12:05
Avatar de floog
floog
 
Fecha de Ingreso: enero-2006
Mensajes: 191
Antigüedad: 18 años, 3 meses
Puntos: 2
Warning¡¡

Hola ejecutando una pagina en php me da el siguiente error Warning

Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\atlansur\support\tablas_info.php on line 7

Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\atlansur\support\tablas_info.php on line 11

y el codigo que ejecuto es el siguiente
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 a todos ustedes