php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20996 unserting from a for
Submitted: 2002-12-13 13:04 UTC Modified: 2002-12-13 13:11 UTC
From: jose dot vargas at neoris dot com Assigned:
Status: Not a bug Package: *Database Functions
PHP Version: 4.2.3 OS: win 2k pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jose dot vargas at neoris dot com
New email:
PHP Version: OS:

 

 [2002-12-13 13:04 UTC] jose dot vargas at neoris dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-13 13:11 UTC] msopacua@php.net
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
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jul 06 02:01:28 2020 UTC