php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25477 mysql
Submitted: 2003-09-10 16:24 UTC Modified: 2003-09-10 18:31 UTC
From: php-report at web58 dot de Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.1 OS: WIN, Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php-report at web58 dot de
New email:
PHP Version: OS:

 

 [2003-09-10 16:24 UTC] php-report at web58 dot de
Description:
------------
Hello,

I am not sure, if can say if it a bug!

When I send a form-array:

echo $_POST[fieldname][$i];
I get the value of a array!

If I will write in Mysql
$sql= "INSERT INTO (field) ($_POST[fieldname][$i])";
$sql= "INSERT INTO (field) ('$_POST[fieldname][$i]')";
i get the word array.

Or make I a thing-error?

Same echo <<<HALLO
...
HALLO;

Reproduce code:
---------------
s.o.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 16:27 UTC] php-report at web58 dot de
yes I have forget the word VALUE, in the SQL-String, but I get, the word array, too!
 [2003-09-10 16:40 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 07:00:01 2025 UTC