Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/07/2009, 11:21
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Configurar Link Para Editar Resultados de Consulta BD MYSql

En vez de mostrarlo como texto puedes mostrarlos dentro de un formulario. Tomando tu ejemplo
Código PHP:
Ver original
  1. $consulta = mysql_query("SELECT * FROM personal WHERE Cedula LIKE '%".$Cedula."' AND FECHA LIKE '%".$FECHA."' AND Mail LIKE '%".$Mail."%' AND Nombre LIKE '%".$Nombre."' AND Telefono LIKE '%".$Telefono."' ",$con );
  2. $encontrados = mysql_num_rows($consulta);  
  3. if($encontrados > 0){  
  4.     echo "<form action='pagina_a_editar.php' method='post'>";
  5.     while($row = mysql_fetch_array($consulta)){  
  6.         echo  
  7.         //"<p>".$row['Cedula']." - ".$row['FECHA']." - ".$row['Mail']." - ".$row['Nombre']." - ".$row['Telefono'].  "</p> "  ;  
  8.         '
  9.        <table align="center" border="1">
  10.            <tr>
  11.                <td align="center" width="20%"><input type="text" name="Cedula" value="'.$row['Cedula'].'" /></td>
  12.                <td align="center" width="20%"><input type="text" name="FECHA" value="'.$row['FECHA'].'" /></td>
  13.                <td align="center" width="20%"><input type="text" name="Mail" value="'.$row['Mail'].'" /></td>
  14.                <td align="center" width="20%"><input type="text" name="Nombre" value="'.$row['Nombre'].'" /></td>
  15.                <td align="center" width="20%"><input type="text" name="Telefono" value="'.$row['Telefono'].'" /></td>
  16.                <td align="center" width="20%"><input type="submit" value="submit" /></td>
  17.            </tr>    
  18.        </table>';    
  19.     }
  20.     echo "</form>";
  21. }else{  
  22.     echo 'No se han encontrado datos';  
  23. }