Ver Mensaje Individual
  #15 (permalink)  
Antiguo 09/09/2010, 09:11
eke_ps
 
Fecha de Ingreso: septiembre-2010
Mensajes: 101
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: problemas con update

puse esto y no funciono

if
Cita:
(isset($_POST['modificar'])){
mysql_query("UPDATE tbl_encuestasp SET pregunta='".$_POST['pregunta'] ."' WHERE id=".$_POST['id']);
//mysql_query("UPDATE tbl_encuestasr set respuesta=".$_POST['respuesta'] ." where idpregunta=".$_POST['id']);
mysql_query("UPDATE tbl_encuestasr set respuesta=".$_POST['modopcion1'] ." where id=".$_POST['id']);


}

y la opcion que quise modificar es esta


Cita:
<td height="42">modifica la opcion 1:
<?php $data=mysql_fetch_assoc($modificaropciones);?>
<input name="modopcion1" type="text" id="opcion1" value="<?php echo($data['respuesta']);?>" size="30" maxlength="28" /></td>