#25477 [Opn]: mysql

From: Date: Wed, 10 Sep 2003 20:27:20 +0000
Subject: #25477 [Opn]: mysql
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47397@lists.php.net to get a copy of this message
ID: 25477 User updated by: php-report at web58 dot de Reported By: php-report at web58 dot de Status: Open Bug Type: *General Issues Operating System: WIN, Linux PHP Version: 4.3.1 New Comment: yes I have forget the word VALUE, in the SQL-String, but I get, the word array, too! Previous Comments: ------------------------------------------------------------------------ [2003-09-10 16:24:42] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25477&edit=1

« previous php.bugs (#47397) next »