Ver Mensaje Individual
  #4 (permalink)  
Antiguo 31/01/2012, 14:52
Avatar de jotaincubus
jotaincubus
 
Fecha de Ingreso: mayo-2005
Ubicación: Medellin - Colombia
Mensajes: 1.797
Antigüedad: 19 años
Puntos: 394
Respuesta: Insertar bucle POST en un solo registro en mysql

Código PHP:
Ver original
  1. if ($_POST['nvar_l']) {
  2. $nombre = $_POST['nombre'];
  3. $puntaje = "";
  4.  
  5. foreach ($_POST['valor'] as $indice => $valor) {
  6. $puntaje .= $_POST['puntaje'][$indice].",";
  7. }
  8. mysql_query("INSERT INTO variables_l (nombre, valores, puntaje) VALUES ('".$nombre."', '".$valor."', '".$puntaje."', '".$evaluacion."', '".$pestana."')");

PDT: No se de donde salen $evaluacion y $pestana
__________________
Por que existe gente que no agradece después de que se le ha brindado tiempo y ayuda ???