Ver Mensaje Individual
  #8 (permalink)  
Antiguo 18/08/2008, 06:21
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 8 meses
Puntos: 416
Respuesta: Mostrar campos para modificar datos

Código PHP:
<?php
//supondre que la conexion esta hecha

$select "SELECT * FROM noticias WHERE ID = '".$_GET['ID']."'';
$query = mysql_query($select) or die(mysql_error());
$row = mysql_fetch_assoc($query);

?>
<form method="
post" action="yoquese.php">
Titulo: <input type="
text" name="Titulo" value="<?php if(isset($row['titulo'])) { echo $row['titulo']; } ?>" />

//etc etc etc ... tan sencillo como eso...