sali media duranga cluster me explicas mejor aki esta mi codigo le agregue eso k dijiste k sale en la pagina esa y me kedo asi peo me sale esteb error
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in c:\AppServ\www\uta.php on line 44
Código PHP:
<html>
<body bgcolor="#FFFFFF">
<title>modificar item </title>
<?php
$conexion = mysql_connect("localhost", "root", "");
if (! $conexion)
{
echo "<h2 align='center'>ERROR: Imposible establecer conexión con el servidor</h2>";
exit;
}
mysql_select_db("mibd", $conexion);
$result = mysql_query("SELECT di.id,di.numdi,di.estadodi_codestado,emprtrans.nomtransp,emprtrans.nomempr,crt.numcrt,item.mezcla,item.merc,item.kneto,item.codaran,item.cant_merc from di,emprtrans,item,crt WHERE item.di_numdi=di.numdi",$conexion);
echo "<center>Elige un registro de la lista para modificar:<br></center><br><br>";
echo "<center><table border = '1' bgcolor='#E1E1E1'> \n";
echo "<form method='post' action='edita4.php'>";
$num_rows = mysql_num_rows($result);
echo "$num_rows rows\n";
{
echo "<tr> \n";
echo "<td> <font color='#330066' size=3><input type=submit name='id' value=$row[0]> </font> </td> \n";
echo "<td> <font color='#330066' size=3> $row[1] </font> </td> \n";
echo "<td> <font color='#330066' size=3> $row[2] </font> </td> \n";
echo "<td> <font color='#330066' size=3> $row[3] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[4] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[5] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[6] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[7] </font></td> \n";
echo "<td> <font color='#330066'size=3> $row[8] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[9] </font></td> \n";
echo "<td> <font color='#330066'size=3> $row[10] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[11] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[12] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[13] </font></td> \n";
echo "<td> <font color='#330066' size=3> $row[14] </font></td> \n";
echo "</tr> \n";
}
echo "</table> \n</center>";
echo "</form>";
?>
<?
mysql_free_result($resultado);
mysql_close($conexion);
?>
<br><br><center><a href="ingreso.php">INSERTAR</a></center>
</body>
</html>