note 111446 added to pdo.commit

From: Date: Wed, 20 Feb 2013 21:02:49 +0000
Subject: note 111446 added to pdo.commit
Groups: php.notes 
Request: Send a blank email to php-notes+get-193703@lists.php.net to get a copy of this message
- I need some help please - I don't understand Example #1, because of this part of the code: foreach ($fruits as $fruit) { $sth->execute(array( $fruit->name, $fruit->colour, $fruit->calories, )); 1# - It does iterate over an object, array or what? - I've tried both ... and of course, both give errors 2# - When it is said "Insert multiple records...", I understand "more than one row", am I wrong? ---- Server IP: 69.147.83.199 Probable Submitter: 109.96.171.14 ---- Manual Page -- http://php.net/manual/en/pdo.commit.php Edit -- https://master.php.net/note/edit/111446 Del: integrated -- https://master.php.net/note/delete/111446/integrated Del: useless -- https://master.php.net/note/delete/111446/useless Del: bad code -- https://master.php.net/note/delete/111446/bad+code Del: spam -- https://master.php.net/note/delete/111446/spam Del: non-english -- https://master.php.net/note/delete/111446/non-english Del: in docs -- https://master.php.net/note/delete/111446/in+docs Del: other reasons-- https://master.php.net/note/delete/111446 Reject -- https://master.php.net/note/reject/111446 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193703) next »