|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-04 14:59 UTC] sniper@php.net
[2005-10-05 10:43 UTC] pointeau_sylvain at yahoo dot fr
[2005-10-05 11:02 UTC] sniper@php.net
[2005-10-19 17:17 UTC] iliaa@php.net
[2005-10-21 10:16 UTC] pointeau_sylvain at yahoo dot fr
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 06:00:01 2025 UTC |
Description: ------------ The second result set returned by the stored procedure is not displayed. Reproduce code: --------------- -- MYSQL 5 CREATE PROCEDURE `SPG_PERSONS`() BEGIN SELECT * FROM TEST_PERSON; SELECT 'second result'; END -- PHP / PDO $pdo = new PDO('mysql:host=localhost;dbname=test', '***', '***'); $stmt = $pdo->query('CALL SPG_PERSONS()'); do { $rowset = $stmt->fetchAll(); foreach ($rowset as $row) { echo $row[0]; echo '<br>'; } } while( $stmt->nextRowset() ); Expected result: ---------------- the results of both result set.