#20996 [Opn->Bgs]: unserting from a for
| From: | msopacua@php.net | Date: | Fri, 13 Dec 2002 19:11:07 +0000 |
| Subject: | #20996 [Opn->Bgs]: unserting from a for | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27644@lists.php.net to get a copy of this message | ||
ID: 20996
Updated by: msopacua@php.net
Reported By: jose.vargas@neoris.com
-Status: Open
+Status: Bogus
Bug Type: *Database Functions
Operating System: win 2k pro
PHP Version: 4.2.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2002-12-13 13:04:32] jose.vargas@neoris.com
this is what i'm doing:
for ($i=0; $i<$howmany; $i++){
// Insertar Datos
$premio[$i] = $form_data['premio[$i]'];
$description[$i] = $form_data['description[$i]'];
$bil[$i] = $form_data['bil[$i]'];
$myquery[$i] = "INSERT INTO PREMIO ( premio, description, bil)
VALUES ('$premio[$i]', '$description[$i]', '$bil[$i]')";
$result = mysql_query($myquery[$i], $mysql);
if (!$result) {
$error[$i] = "No se logro realizar la inserción";
return ($error[$i]);
}
}
it does the insert but whitout the data, empty;
what am i doing wrong
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20996&edit=1