foreach OCIBindByName()

From: Date: Wed, 14 Feb 2001 12:35:10 +0000
Subject: foreach OCIBindByName()
Groups: php.general 
Request: Send a blank email to php-general+get-39685@lists.php.net to get a copy of this message
So I want to bind multiple values that are in an associative array I have this code foreach ($binds as $key=>$value) { OCIBindByName($this->m_cursor,":$key",$value,-1); } but it only seems to work for one value in the array, the array conetents would be something like $binds["id"] = 54; $binds["name"] = Dick; anyone get this to work or have any idea why it works when the array only has one thing in it? Thanks in advance -- Shaun Butler sbutler@internet.com x2905

« previous php.general (#39685) next »