ID:               27212
 Updated by:       [EMAIL PROTECTED]
 Reported By:      adam at trachtenberg dot com
-Status:           Open
+Status:           Closed
 Bug Type:         MySQL related
 Operating System: *
 PHP Version:      5CVS-2004-02-10 (dev)
 New Comment:

Georg changed the parameter to only accept strings.



Previous Comments:
------------------------------------------------------------------------

[2004-02-10 14:42:55] adam at trachtenberg dot com

Description:
------------
You cannot bind array elements as parameters in 
mysqli_bind_param(). This should either be fixed or 
documented. :)

Reproduce code:
---------------
$foo[0] = 'foo';

$link =  mysqli_connect("localhost", "root", "password", "test");
$stmt = mysqli_prepare($link, 'INSERT INTO t VALUES (?)');
mysqli_bind_param($stmt, array(MYSQLI_BIND_STRING), $foo[0]);

mysqli_execute($stmt);

Expected result:
----------------
foo is inserted into table t

Actual result:
--------------
no data inserted


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27212&edit=1

Reply via email to