不识别 table 中的 id

does not identify the id in the table

我正在对查询进行修改,并且已经添加了所有内容,但在修改它时不适用于我在放置修改页面地址后放置的 'id'

这是 table

    <!DOCTYPE html>
    <html>
    <head>
<title> TABLA </title>
    </head>
    <body>
         <center>
      <table bgcolor="#85C1E9" border="3">
        <thead>
            <tr>
              <th colspan="1"><a href="guarda.php">Nuevo</a></th>
              <th colspan="5">Lista de usuarios</th>
            </tr>
        </thead>    
        <tbody>
        <tr>

                <td>Id</td>
                <td>Nombre</td>
                <td>Apellido</td>
                <td>Correo</td>
                <td colspan="2"><center>Operaciones</center></td>

            </tr>
            <?php
            include("conexiones.php");
            $query="SELECT * FROM usuarios";
            $resultado=$conexion->query($query);
            while ($row=$resultado->fetch_assoc()) {

            ?>


            <tr>
                  <td><?php echo $row['id'];?></td>
                  <td><?php echo $row['nombre'];?></td>
                  <td><?php echo $row['apellido'];?></td>
                  <td><?php echo $row['correo'];?></td>
                  <td><a href="modificar.php?id=<?php echo $row['id']; 
             ?>">Modificar</a></td>
                  <td><a href="eliminar.php?id=<?php echo $row['id']; ? 
             >">Eliminar</a></td>                
             </tr>

             <?php 

             }
             ?>
         </tbody>
         </table>
             </center>
             </body>

             </html>

这里是修改页面

    <!DOCTYPE html>
    <html>
    <head>
<title>Guardar</title>
    </head>
    <body>
    <center>
    <form action="guardar.php" method="POST" name="guardar"><br><br><br>

        <?php

           $id=$_REQUEST['id'];

            include("conexiones.php");
            $query="SELECT * FROM usuarios";
            $resultado=$conexion->query($query);
            $row=$resultado->fetch_assoc();

            ?>

      <input type="text" required="" name="nombre" placeholder="Nombre..." 
      value="<?php echo $row['nombre'];?>"><br><br>
      <input type="text" required="" name="apellido" 
      placeholder="Apellido..." value="<?php echo $row['apellido'];?>"> 
      <br><br>
       <input type="text" required="" name="correo" 
       placeholder="Correo..." value="<?php echo $row['correo'];?>"><br> 
       <br>
       <input type="submit" value="Aceptar">


      </form>
      </center>
      </body>
      </html>

错误是当我在查询中按修改时,我得到这样的结果:

      http://localhost/modificar.php?id=%3C?echo%20$row[%27id%27];?%3E

它应该走的路(例如)是这样的:

      http://localhost/modificar.php?id=1

试试这个:

<?php
include("conexiones.php");
$query="SELECT * FROM usuarios";
$resultado=$conexion->query($query);
?>
<?php while ($row=$resultado->fetch_assoc()): ?>


            <tr>
                  <td><?= $row['id'] ?></td>
                  <td><?= $row['nombre'] ?></td>
                  <td><?= $row['apellido'] ?></td>
                  <td><?= $row['correo'] ?></td>
                  <td><a href="modificar.php?id=<?= $row['id'] ?>">
                      Modificar</a></td>
                  <td><a href="eliminar.php?id=<?= $row['id'] ?>"> 
                      Eliminar</a></td>                
             </tr>
<?php endwhile; ?>

希望对您有所帮助。