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();
?>