me sale el siguiente error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ljubetic/public_html/actualizar_equipo.php on line 6
Código PHP:
<?
include "conexion.php";
if (!isset($accion)){
$result=mysql_query("SELECT * FROM equipos WHERE ninterno=$ninterno",
$conexion);
$row=mysql_fetch_row($result);
echo"<html>
<head><title>Actualizar equipos Ljubetic</title></head>
<body>
<form action=\"actualizar_equipo.php?accion=guardar\" method=\"POST\">
<pre><strong>Actualizar equipos Ljubetic</strong>
NºInterno: <input type=\"text\" value=\"$row[0]\" name=\"ninterno\">
Equipo: <input type=\"text\" value=\"$row[1]\" name=\"equipo\">
Marca: <input type=\"text\" value=\"$row[2]\" name=\"marca\">
Modelo: <input type=\"text\" value=\"$row[3]\" name=\"modelo\">
NºSerie: <input type=\"text\" value=\"$row[4]\" name=\"nserie\">
Año: <input type=\"text\" value=\"$row[5]\" name=\ano\>
Motor: <input type=\"text\" value=\"$row[6]\" name=\"motor\">
Modelo Motor: <input type=\"text\" value=\"$row[7]\" name=\"modelo_motor\">
Serie Motor: <input type=\"text\" value=\"$row[8]\" name=\"serie_motor\">
Capacidad: <input type=\"text\" value=\"$row[9]\" name=\"capacidad\">
<strong>
</strong><input type=\"hidden\" name=\"ninterno\" value=\"$row[0]\">
<input type=\"submit\" value=\"Guardar\">
</pre>
</form>
</body>
</html>";
}elseif($accion==guardar){
$result=mysql_query("UPDATE equipos SET equipo='$equipo', marca='$marca', modelo='$modelo', nserie='$nserie', ano='$ano', motor='$motor', modelo_motor='$modelo_motor', serie_motor='$serie_motor', capacidad='$capacidad' WHERE ninterno = '$ninterno'",$conexion);
echo"
<html>
<body>
<h3>Los registros han sido actualizados</h3>
</body>
</html>";
}
include "cerrar_conexion.php";
?>
me pueden ayudar por favor