note 98630 added to mysqli-stmt.bind-result
| From: | swissbob2 at yahoo dot co dot uk | Date: | Mon, 28 Jun 2010 11:08:03 +0000 |
| Subject: | note 98630 added to mysqli-stmt.bind-result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170512@lists.php.net to get a copy of this message | ||
I discovered this one by accident; mysqli_stmt_bind_result overwrites an *existing* session variable
of the same name (but doesn't create them).
In other words,
mysqli_stmt_bind_result($stmt, $col1, $col2);
will overwrite session variables $_SESSION['col1'] and $_SESSION['col2'] if they
exist, but will not create them if they don't.
----
Server IP: 69.147.83.197
Probable Submitter: 82.32.115.131
----
Manual Page -- http://www.php.net/manual/en/mysqli-stmt.bind-result.php
Edit -- https://master.php.net/note/edit/98630
Del: integrated -- https://master.php.net/note/delete/98630/integrated
Del: useless -- https://master.php.net/note/delete/98630/useless
Del: bad code -- https://master.php.net/note/delete/98630/bad+code
Del: spam -- https://master.php.net/note/delete/98630/spam
Del: non-english -- https://master.php.net/note/delete/98630/non-english
Del: in docs -- https://master.php.net/note/delete/98630/in+docs
Del: other reasons-- https://master.php.net/note/delete/98630
Reject -- https://master.php.net/note/reject/98630
Search -- https://master.php.net/manage/user-notes.php