Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/05/2017, 16:06
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Insertar valor al marcar otro

Como ya te sugirió Camatagua123, dentro del if, solo necesitas agregar una sentencia sql para insertar el dato, algo como:

Código PHP:
Ver original
  1. if(isset($_POST['segundo']) && ! empty($_POST['segundo'])){
  2.      $insertSQL4 = sprintf("insert into medios ( medio) values (%s)",            
  3.      GetSQLValueString($_POST['segundo'],  "text") );
  4.      $Result2 = mysql_query($insertSQL4, $connection) or die(mysql_error("Error "));
  5. }
__________________
- León, Guanajuato
- GV-Foto