Ver Mensaje Individual
  #9 (permalink)  
Antiguo 23/10/2008, 13:43
Avatar de gisek
gisek
 
Fecha de Ingreso: julio-2008
Mensajes: 12
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: como crear un enlace href dentro de php pasando un ID

Espero que Todavía te Sirva, es un poco más claro la forma de utilizar las comillas, esto para que no te confundas. Saludos

Código PHP:
echo "<table border =1>";
while(
$rs=mysql_fetch_array($sql))
  {
  echo 
"<tr>
          <td>"
.$rs['MARCA']."</td>
          <td>"
.$rs['MODELO']."</td>
          <td>"
.$rs['MOTORIZACION']."</td>
          <td>"
.$rs['COMBUSTIBLE']."</td>
          <td>"
.$rs['ACELERACION']."</td>
          <td>"
.$rs['POTENCIA']."</td>
          <td>"
.$rs['CONSUMO']."</td>
          <td>"
.$rs['PRECIO']."</td>
          <td><a href='modificar.php?ID="
.$rs['ID']."'>Editar</a></td>
        </tr>"
;
  }
 echo 
"<table>"