Código PHP:
  
<html>
<title> Pokedex Editar </title>
<body background="Imagen/fondo.jpg">
    
     <head> <center> <b> <font size = +7 color = edeb48> Modificar tus Datos y Pokemon </font> </b> </center> </head>
     <br>
     <center> <img src = "Imagen/pintor.png"> </center><br>
     
     <form action="editar.php" method="post">
      
        <font size = +1 color = white > <b> >Selecciona tu id: <input type="int" name="id" value="" /> </b> </font> <br>
        <br>
        <font size = +1 color = white > <b> >Modificar Nombre: <input type="text" name="nombre" value="" /> </b> </font> <br>
        <br>
        <font size = +1 color = white > <b> >Modificar Pokemon: <input type="text" name="pokemon" value="" /> </b> </font> <br>
        <br>
        <font size = +1 color = white > <b> >Modificar Tipo1: <input type="text" name="tipo1" value="" /> </b> </font> <br>
        <br>
        <font size = +1 color = white > <b> >Modificar Tipo2: <input type="text" name="tipo2" value="" /> </b> </font> <br>
        <br>
        <font size = +1 color = white > <b> >Modificar Fecha(aaaa-mm-dd): <input type="text" name="fecha" value="" /> </b> </font> <br>
        <input type="submit" name="boton" value="Aceptar" />
     </form>
     <br>
        <br>
            <br>
                <br>
</form>
    </body>
 
<?php
$imagen = '<img src = "Imagen/Bulbasaur.png">';
$imagen2 = '<img src = "Imagen/Charmander.png">';
$imagen3 = '<img src = "Imagen/Ralts.png">';
$imagen4 = '<img src = "Imagen/Pichu.png">';
$texto1 = '<b><font size = +1 color = 2e8b39> Alta tu nombre y Pokemon <A HREF="http://localhost/altas.php">aqui</a> </font></b>';
$texto2 = '<b><font size = +1 color = d4882f> Da de baja tu nombre y Pokemon <A HREF="http://localhost/bajas.php">aqui</a></font></b>';
$texto3 = '<b><font size = +1 color = white> Home <A HREF="http://localhost/pokedex.php">aqui</a></font></b>';
$texto4 = '<b><font size = +1 color = ebe658> Consulta los Pokemon existentes <A HREF="http://localhost/consulta.php">aqui</a></font></b>';
echo $imagen;
echo $texto1;
echo " ";echo " ";
echo $imagen2;
echo $texto2;
echo " ";echo " ";
echo $imagen3;
echo $texto3;
echo " ";echo " ";
echo $imagen4;
echo $texto4;
?>
</html>   Código PHP:
   <?php
     $conexion = mysql_connect("localhost","root","");
     mysql_select_db("andres", $conexion);
     
     
     $arg1 = $_POST['id'];
     $arg2 = $_POST['nombre'];
     $arg3 = $_POST['pokemon'];
     $arg4 = $_POST['tipo1'];
     $arg5 = $_POST['tipo2'];
     $arg6 = $_POST['fecha'];
  
     
     $argumentoquery = "update registros set nombre = " . $arg2 . ", where id = " . $arg1 . ";" ;
     $consulta = mysql_query($argumentoquery, $conexion);
   
     $argumentoquery2 = "update registros set pokemon = ". $arg2 . " where id = " . $arg1 . ";" ;
     $consulta2 = mysql_query($argumentoquery2, $conexion);
     
     $argumentoquery3 = "update registros set tipo1 = ". $arg2 . " where id = " . $arg1 . ";" ;
     $consulta3 = mysql_query($argumentoquery3, $conexion);
     
     $argumentoquery4 = "update registros set tipo2 = ". $arg2 . " where id = " . $arg1 . ";" ;
     $consulta4 = mysql_query($argumentoquery4, $conexion);
     
     $argumentoquery5 = "update registros set fecha = ". $arg2 . " where id = " . $arg1 . ";" ;
     $consulta5 = mysql_query($argumentoquery5, $conexion);
     header("Location: editar.php");
?>    
 


