haber mis datos estan asi ahora:
buscaequipo.php
Código PHP:
<html>
<body>
<?php
include("conec.php");
$link=Conectarse();
$Sql="select * from primedivision where id like '%".$_REQUEST["id"]."%'";
$result=mysql_query($Sql,$link);
?>
<table border="1" cellspacing="1" cellpadding="1">
<tr>
<td> Equipo </td>
<td> GF </td>
<td> GC </td>
<td> Puntos </td>
</tr>
<form name="form1" method="post" action="modificaequipopri.php">
<?php
while($row = mysql_fetch_array($result))
{
printf("<tr><td> <INPUT TYPE='text' NAME='nombre' SIZE='20' MAXLENGTH='30' value='%s'> </td><td> <INPUT TYPE='text' NAME='favor' SIZE='20' MAXLENGTH='30' value='%s'> </td><td> <INPUT TYPE='text' NAME='contra' SIZE='20' MAXLENGTH='30' value='%s'> </td><td> <INPUT TYPE='text' NAME='puntos' SIZE='20' MAXLENGTH='30' value='%s'> </td></tr>", $row["id_equipo"],$row["gf"],$row["gc"],$row["ptos"]);
}
mysql_free_result($result);
?>
<input type="submit" name="accion" value="Guardar">
</form>
</body>
</html>
y el modificaequipopri.php
Código PHP:
<?php
include("conec.php");
$link=Conectarse();
$Sql="UPDATE primedivision SET id_equipo='".$_POST["nombre"]."', gf='".$_POST["favor"]."', gc='".$_POST["contra"]."', ptos='".$_POST["puntos"]."' WHERE id='".$_POST["id"]."'";
mysql_query($Sql,$link);
header("Location: consultaequipopri.php");
?>
pero no modifica los registros aun