ya corregi mi archivo pero aun no veo resultado.
buscaequipopri.php
Código PHP:
<html>
<body>
<?php
include("conec.php");
$link=Conectarse();
$Sql="select * from ligascenso where id like '%".$_POST["id"]."%'";
$result=mysql_query($Sql,$link);
?>
<table border="1" cellspacing="1" cellpadding="1">
<tr>
<td> ID</td>
<td> Equipo </td>
<td> GF </td>
<td> GC </td>
<td> Puntos </td>
<td> Modificar </td>
</tr>
<?php
while($row = mysql_fetch_array($result))
{
printf("<tr><td><INPUT TYPE='text' NAME='id' SIZE='20' MAXLENGTH='30' value='%s'></td><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><td align='center'><a href='modificaequipopri.php?id=". $row['id'] ."'> Modificar </a></td></tr>", $row["id"],$row["id_equipo"],$row["gf"],$row["gc"],$row["ptos"]);
}
mysql_free_result($result);
?>
</form>
</body>
</html>
modificaequipopri.php
Código PHP:
<?php
include("conec.php");
$link=Conectarse();
$Sql="UPDATE primedivision SET id='".$_POST["id"]."', 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");
?>
ahora donde esta el error si me aparecen los resultados pero no los modifica
saludos y espero y me puedan ayudar