Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/10/2008, 16:18
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Respuesta: como crear un enlace href dentro de php pasando un ID

Si te fijas tienes un problema te falta un ultimo ; en tu row precio, revisa la sintaxis, el mismo foro te esta indicando el problema.

Prueba esto:
Código php:
Ver original
  1. while($rs=mysql_fetch_array($sql))
  2.   {
  3.  
  4.     echo "<tr>"
  5.            ."<td>".$rs['MARCA']."</td>"
  6.            ."<td>".$rs['MODELO']."</td>"
  7.            ."<td>".$rs['MOTORIZACION']."</td>"
  8.            ."<td>".$rs['COMBUSTIBLE']."</td>"
  9.        ."<td>".$rs['ACELERACION']."</td>"
  10.        ."<td>".$rs['POTENCIA']."</td>"
  11.        ."<td>".$rs['CONSUMO']."</td>"
  12.        ."<td>".$rs['PRECIO']."</td>"
  13.        . " <a href=' modificar.php?ID= ".$rs['ID']." '> Editar</a>"
  14.            ."</tr>";
  15.   }
  16. ?>

Saludos.