🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1367

error con mysql y php

#1367
From: Rickoj
Date: Thu, 31 Aug 2006 22:20
38 lines
2197 bytes
tengo un cuestuionario en linea, que consta de 40 preguntas, por alguna 
razon no me inserta la pregunta 12, y en algunas ocasiones la pregunta 36
el codigo que tengo es el siguiente

preg12.php
<p><b>Pregunta 12:</b></p>
<p> Bla bla bla: </p>
<form method="post" name="form1" action="preg13.php">
  <p>
    <input type="radio" name="preg12" value="a">
    <b>a)</b> blabla<br>
    <input type="radio" name="preg12" value="b">
    <b> b)</b> blablabla<br>
    <input type="radio" name="preg12" value="c">
    <b>c)</b> bla bla<br>
    <input type="radio" name="preg12" value="d">
    <b>d) </b> bleble<br>
    <input type="radio" name="preg12" value="e" checked>
    <b>e)</b> Skip this question/Omitir</p>
  <p>
    <input type="submit" name="Submit" value="Siguiente Pregunta">
  </p>
</form>

preg13.php
require_once('Connections/basedatos.php');
require_once('validado.php');
$rut=$_SESSION["rut"];
$preg12=$_POST['preg12'];
$updateSQL =" UPDATE resp_quiz set preg12='$preg12' WHERE rut=$rut";
mysql_select_db($database_quiz, $quiz);
$Result1 = mysql_query($updateSQL, $quiz) or die(mysql_error());

el asunto es que cuando hago la prueba con un,dosres usuarios la escribe 
pero cuando son mas de 10 no la escribe
que tengo mal en el codigo?

o es mareo de mysql? 
Technical Details
Message-ID: <ed7nar$o49$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,28f871d4725309ec,start
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail
From: "Rick_oj" <rick_oj@[sin-esto]tutopia.com>
Newsgroups: chile.comp.programacion
Subject: error con mysql y php
Date: Thu, 31 Aug 2006 18:20:42 -0400
Organization: Varios
Lines: 40
Message-ID: <ed7nar$o49$1@news.nivel5.cl>
NNTP-Posting-Host: pc-218-52-83-200.cm.vtr.net
X-Trace: news.nivel5.cl 1157062811 24713 200.83.52.218 (31 Aug 2006 22:20:11 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Thu, 31 Aug 2006 22:20:11 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original